From eec0203c143a0b5a7e4cd7fac4350e7fe69f3e9f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Nov 2008 18:09:50 +0100 Subject: Adding a panic message when we netboot and have no supported network device (Closes: #496684). --- scripts/live | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts') 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} -- cgit v1.2.3