Skip to content

Commit

Permalink
Adding a panic message when we netboot and have no supported network …
Browse files Browse the repository at this point in the history
…device (Closes: #496684).
  • Loading branch information
daniel-baumann committed Nov 23, 2008
1 parent 9240e2d commit f76d6c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/live
Expand Up @@ -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}
Expand Down

0 comments on commit f76d6c0

Please sign in to comment.