Add a delay on ejecting (#474817)

The eject is at the end of the reboot and so people don't always have enough
time to remove the CD.  Add a delay to allow them to get the CD out
This commit is contained in:
Jeremy Katz 2008-12-08 13:18:55 -05:00
parent b648168162
commit 51cfab9fee

View File

@ -254,6 +254,8 @@ if strstr "\`cat /proc/cmdline\`" CDLABEL= ; then
cat /sbin/halt > /dev/null
cat /sbin/reboot > /dev/null
/usr/sbin/eject -p -m \$(readlink -f /dev/live) >/dev/null 2>&1
echo "Please remove the CD from your drive and press Enter to finish restarting"
read -t 30 < /dev/console
FOE
chmod +x /sbin/halt.local
fi