#! /bin/sh
+# check for netboot
+if grep -qs netboot /proc/cmdline || grep -qsi root=/dev/nfs /proc/cmdline || grep -qsi root=/dev/cifs /proc/cmdline ; then
+ exit 0
+fi
+
grep -qs boot=casper /proc/cmdline || exit 0
# Try to cache everything we're likely to need after ejecting. This
cache_path "$path"
done
-eject -p -m /cdrom >/dev/null 2>&1
+eject -p -m /live_media >/dev/null 2>&1
# XXX - i18n
-echo -n "Please remove the disc, close the tray (if any) and press ENTER: "
+echo -n "Please remove the disc (if any), close the tray (if any) and press ENTER: "
if [ -x /sbin/usplash_write ]; then
/sbin/usplash_write "TIMEOUT 0"
/sbin/usplash_write "TEXT Please remove the disc, close the tray (if any)"