[mythtv-users] Wakeup Timer
Nick
knowledgejunkie at gmail.com
Wed Aug 31 01:48:08 UTC 2005
On 8/30/05, Nigel Metheringham
<nigel.metheringham at dev.intechnology.co.uk> wrote:
> On Tue, 2005-08-30 at 00:40 +0200, Michael Vistein wrote:
> > Nigel Metheringham schrieb:
> > > title Power Down
> > > savedefault --default=2
> > > halt
> > >
> > > but on power up it sticks on the 0 entry (the power down).
> >
> > I didn't succeed with this, too, grub simply didn't save the new default.
> >
> > But I found a way that works:
> >
> > in my menu.lst I have
> >
> > default 1
> >
> > so my linux kernel is the default boot option. In my mythshutdown script
> > I have
> >
> > echo "savedefault --default=0 --once" | grub --batch
> >
> > This sets the PowerOff (0) item only for the next boot. Any following
> > booting will again have the default from menu.lst. It works for me.
>
> Ah - I assumed that this would only work if you had a default saved
> statement - obviously that was a mistake! Looks like its worth putting
> in some grub bug reports though...
I use the savedefault/grub method as the Pundit-R systems need to
reboot, then halt.
*One important thing to remember* if you ever hardcode the default
grub entry/poweroff entry in a script and then install/remove kernels,
make sure you check that grub.conf still contains the items in the
correct sequence, otherwise strange things may happen.
Nick
More information about the mythtv-users
mailing list