On Saturday 2 February 2008, Stroller wrote:

> One answer to this is to change the "default" entry in /boot/grub/
> grub.conf
>
> If you don't want to do this manually using $editor each time you
> want to start Windows then you could surely write a script which
> would do so. In order to change /boot/grub/grub.conf from Windows you
> would need to install an ext3-write driver for 'doze or format your /
> boot partition FAT32.
>
> Surely one could easily write a script which would change the
> "default" entry in /boot/grub/grub.conf. In order to change it back
> one would probably need to have it also write a /boot/grub/
> my.next.boot.txt file, too, and have start-up scripts under each o/s
> to recognise that & once again edit /boot/grub/grub.conf.  I do not
> think such a facility is built-in to grub.

There is the "savedefault" command, which can be used to boot an OS only 
once while keeping the original OS as default, thus booting the original 
OS the next time. It's explained in the grub info file.
So, I suppose the OP could write a wrapper script to /sbin/shutdown which 
does a grub-set-default to boot windows once.
-- 
gentoo-user@lists.gentoo.org mailing list

Reply via email to