diff options
author | 2012-10-07 19:43:32 +0200 | |
---|---|---|
committer | 2012-10-07 19:43:32 +0200 | |
commit | 1f833fcc41e1d112edc153a58e2db6558dbe3596 (patch) | |
tree | bc28fde5eb93bda3b5463f1046922f0e176c9d0b /usr | |
parent | changed parameter for paludis, fix trigger for full systemupdate (diff) | |
download | gentoo-vdr-scripts-1f833fcc41e1d112edc153a58e2db6558dbe3596.tar.gz gentoo-vdr-scripts-1f833fcc41e1d112edc153a58e2db6558dbe3596.tar.bz2 gentoo-vdr-scripts-1f833fcc41e1d112edc153a58e2db6558dbe3596.zip |
grub2 support added
Diffstat (limited to 'usr')
-rw-r--r-- | usr/share/vdr/shutdown/shutdown-reboot.sh | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/usr/share/vdr/shutdown/shutdown-reboot.sh b/usr/share/vdr/shutdown/shutdown-reboot.sh index 9855096..27859d0 100644 --- a/usr/share/vdr/shutdown/shutdown-reboot.sh +++ b/usr/share/vdr/shutdown/shutdown-reboot.sh @@ -17,7 +17,7 @@ case "${BOOT_MANAGER}" in /etc/init.d/wakeup-reboot-halt mark_for_reboot ;; grub) - mount /boot + mount /boot if [ -n "${REBOOT_ENTRY_GRUB}" ]; then case "${GRUB_SET_REBOOT_ENTRY_METHOD:=grub-set-default}" in grub-set-default) @@ -42,6 +42,25 @@ case "${BOOT_MANAGER}" in mesg "reboot entry not set, can not reboot." fi ;; + grub2) + mount /boot + if [ -n "${REBOOT_ENTRY_GRUB}" ]; then + case "${GRUB_SET_REBOOT_ENTRY_METHOD:=grub2-set-default}" in + grub2-set-default) + if [ -x /usr/sbin/grub2-set-default ]; then + /usr/sbin/grub2-set-default "${REBOOT_ENTRY_GRUB}" + else + mesg "command grub2-set-default not found!" + fi + ;; + *) + mesg "Unknown grub method ${GRUB_SET_REBOOT_ENTRY_METHOD}." + ;; + esac + else + mesg "reboot entry not set, can not reboot." + fi + ;; lilo) mount /boot if [ -n "${REBOOT_ENTRY_LILO}" ]; then |