diff options
| author | Daniel Baumann <daniel@debian.org> | 2008-11-23 18:09:50 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:03 +0100 |
| commit | eec0203c143a0b5a7e4cd7fac4350e7fe69f3e9f (patch) | |
| tree | ce864d27b534c0cce6c5f1fe50383eb0c9b8567d /scripts | |
| parent | e5c756a71ece7229bf4b5d41ffc034c2b4e5ce5a (diff) | |
| download | live-boot-eec0203c143a0b5a7e4cd7fac4350e7fe69f3e9f.tar.gz live-boot-eec0203c143a0b5a7e4cd7fac4350e7fe69f3e9f.zip | |
Adding a panic message when we netboot and have no supported network device (Closes: #496684).
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/live b/scripts/live index d399d87..9c75f74 100755 --- a/scripts/live +++ b/scripts/live @@ -692,6 +692,14 @@ do_netmount () [ -z ${HOSTNAME} ] && HOSTNAME=${OLDHOSTNAME} export HOSTNAME + # Check if we have a network device at all + if ! ls /sys/class/net/eth0 > /dev/null 2>&1 && \ + ! ls /sys/class/net/wlan0 > /dev/null 2>&1 && \ + ! ls /sys/class/net/ath0 > /dev/null 2>&1 + then + panic "No supported network device found, maybe a non-mainline driver is required." + fi + if [ "${NFSROOT}" = "auto" ] then NFSROOT=${ROOTSERVER}:${ROOTPATH} |
