<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Nigel Metheringham wrote:
<blockquote cite="mid1125389271.2869.7.camel@angua.localnet" type="cite">
<pre wrap="">On Tue, 2005-08-30 at 00:40 +0200, Michael Vistein wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Nigel Metheringham schrieb:
</pre>
<blockquote type="cite">
<pre wrap=""> title Power Down
        savedefault --default=2
        halt
but on power up it sticks on the 0 entry (the power down).
</pre>
</blockquote>
<pre wrap="">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.</pre>
</blockquote>
<pre wrap=""><!----></pre>
<br>
</blockquote>
Thats odd - the commands I use to implement this are quite different.<br>
<br>
I'm running a Gentoo installation and I have grub 0.96-r2 installed. In
my grub.conf I have :<br>
<br>
default saved<br>
<br>
......<br>
<br>
title PowerOff<br>
savedefault 0<br>
halt<br>
<br>
Then my mythshutdown script is :<br>
<br>
grub-set-default 1<br>
reboot<br>
<br>
<br>
Works for me. When I was setting it up, I tried using the format you're
describing, but I couldn't get it to work<br>
<br>
<H6><BR><HR>
The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s).
Please direct any additional queries to: communications@s3group.com.
Thank You.
<BR><HR><BR></H6></body>
</html>