| 1 |
#!/bin/sh |
| 2 |
exec tail -n +3 $0 |
| 3 |
# This is an utility for the nvram-wakeup package. nvram-wakeup |
| 4 |
# programs the alarm of the RTC (Real Time Clock, a clock in the |
| 5 |
# motherboard) so that the system will power up at a certain hour. |
| 6 |
# This menu method provides an easy way to halt the system at reboot, |
| 7 |
# once. This is needed by nvram-wakeup on certain motherboard, where, |
| 8 |
# for the changes to take effect, you need to restart (not halt) the |
| 9 |
# computer and wait until the BIOS runs (don't need to enter the BIOS |
| 10 |
# setup). |
| 11 |
menuentry "Halt once (for setting alarm)" { |
| 12 |
halt |
| 13 |
} |
| 14 |
if [ ${nvram_halt_once} ] ; then |
| 15 |
set nvram_halt_once= |
| 16 |
save_env nvram_halt_once |
| 17 |
set default="Halt once (for setting alarm)" |
| 18 |
fi |