summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/live b/scripts/live
index 3ef4ef0..6f4f5c1 100755
--- a/scripts/live
+++ b/scripts/live
@@ -780,6 +780,10 @@ do_netmount ()
udevadm trigger
udevadm settle
+ if [ -z "${NETBOOT}" ] && [ -z "${FETCH}" ] && \
+ [ -z "${HTTPFS}" ] && [ -z "${FTPFS}" ]
+ then
+
# if ethdevice was not specified on the kernel command line
# make sure we try to get a working network configuration
# for *every* present network device (except for loopback of course)
@@ -823,6 +827,10 @@ do_netmount ()
fi
done
+ else
+ ipconfig ${DEVICE} | tee /netboot.config
+ fi
+
# source relevant ipconfig output
OLDHOSTNAME=${HOSTNAME}
. /tmp/net-${DEVICE}.conf