- Be able to boot optionally from floppy without changing BIOS values
- Preselect the entry that will be booted the next time
- Shutdown
/boot/grub/menu.lst:
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default saved
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 15
#default grub root device
groot=(hd0,0)
# Boot Linux
title Linux
root (hd0,5)
kernel /vmlinuz root=/dev/md0 md=1,/dev/hda6,/dev/sda6 ro
savedefault
# Boot floppy
title Floppy
root (fd0)
chainloader +1
# Shutdown
title POWER_OFF
halt
/sbin/grub-reboot (Debian shellscript):
savedefault --once --default=$default