shutdown & wakeup
I am trying to get shutdown / wakeup working. My system requires it to be rebooted and then run the halt command to work right.
I am trying to set up the reboot and halt, but it's going into the halt option. In my mythshutdown I have:
#!/bin/bash
BOOT_PARTITION=/dev/hda1
POWEROFF_BOOTOPTION=2
if ! grep -q /boot /etc/mtab
then mount $BOOT_PARTITION /boot
fi
grub-set-default $POWEROFF_BOOTOPTION
reboot
In my menu.lst -> grub.conf I have:
default saved
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title MythDora (2.6.18-1.2239.fc5smp)
root (hd0,0)
kernel /vmlinuz-2.6.18-1.2239.fc5smp ro root=/dev/rootvg/rootlv01
initrd /initrd-2.6.18-1.2239.fc5smp.img
title MythDora-up (2.6.18-1.2239.fc5)
root (hd0,0)
kernel /vmlinuz-2.6.18-1.2239.fc5 ro root=/dev/rootvg/rootlv01
initrd /initrd-2.6.18-1.2239.fc5.img
Title Power Off
savedefault 0
cat /boot/grub/default
halt

Re: shutdown & wakeup
oops "I am trying to set up the reboot and halt, but it's going into the halt option."
This should read "I am trying to set up the reboot and halt, but it's NOt going into the halt option."
Re: shutdown & wakeup
One of the strange things it appears that grub-set-default isn't on MythDora 3. Yet grub .97 is installed (http://www.gnu.org/software/grub/manual/grub.html#Invoking-grub_002dset_002ddefault)
Found
Found this.
http://64.233.161.104/search?q=cache:BTUylCHqY1AJ:fcp.surfsite.org/modules/newbb/viewtopic.php%3Fviewmode%3Dflat%26order%3DASC%26topic_id%3D20414%26forum%3D11%26move%3Dprev%26topic_time%3D1146574567+grub-set-default+fedora&hl=en&gl=us&ct=clnk&cd=4
"Please ignore the man behind the curtain"
Dennis
"Please ignore the man behind the curtain"
Dennis
Re: Found
Thanks, that led me to another link http://www.gnu.org/software/grub/manual/html_node/Booting-once_002donly.html
whew what a long road this one has been (my motto is never give up).
grub.conf:
default saved
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title MythDora (2.6.18-1.2239.fc5smp)
root (hd0,0)
kernel /vmlinuz-2.6.18-1.2239.fc5smp ro root=/dev/rootvg/rootlv01
initrd /initrd-2.6.18-1.2239.fc5smp.img
savedefault
title MythDora-up (2.6.18-1.2239.fc5)
root (hd0,0)
kernel /vmlinuz-2.6.18-1.2239.fc5 ro root=/dev/rootvg/rootlv01
initrd /initrd-2.6.18-1.2239.fc5.img
# savedefault
title Power Off
savedefault --default=0
halt
mythshutdown:
#!/bin/bash
echo "savedefault --default=2 --once" | grub
reboot
plus the usual setup in mythtvsetup / mythwelcome.