diff options
Diffstat (limited to 'jetson/1-prepare-disk.sh')
-rwxr-xr-x | jetson/1-prepare-disk.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jetson/1-prepare-disk.sh b/jetson/1-prepare-disk.sh index 633021f..eef0eb3 100755 --- a/jetson/1-prepare-disk.sh +++ b/jetson/1-prepare-disk.sh @@ -86,6 +86,9 @@ echo "nameserver 8.8.8.8/" > $mnt/etc/resolv.conf # Manually configure networking to not rely on network-manager eth="$(ifconfig | grep enx | cut -d" " -f 1)" +if [ x"$eth" = x"" ]; then + eth="eth0" +fi cat <<EOF >> $mnt/etc/network/interfaces auto $eth |