[EMAIL PROTECTED] (Eduardo Ochs) writes:

> Allen Bolderoff wrote:
> 
> > I would like to be able to create a file called run.once in
> > /boot/grub/ and have grub try to run it, and remove it after it tries
> > it. (whether it succeeds or fails it should not run it again)
> 
> What about having Grub just change some bytes of this file, without
> changing its size or other flags (time, etc)? That would be *much*
> easier to implement.

I've tried coding this in grub some times ago. It used to work nicely in grub
0.5.x, but i've not adapted nicely to 0.9.0 afaik. Here is what I use:
http://www.mandrakelinux.com/cgi-bin/cvsweb.cgi/~checkout~/SPECS/grub/grub-0.90-altconfigfile2.patch?rev=1&content-type=text/plain

you also need this patch: 
http://www.mandrakelinux.com/cgi-bin/cvsweb.cgi/~checkout~/SPECS/grub/grub-0.5.96.1-init-config-end--prepatch.patch?rev=1&content-type=text/plain

you can use rebootin as an usage example:
http://www.mandrakelinux.com/cgi-bin/cvsweb.cgi/~checkout~/soft/initscripts/mandrake/loader/rebootin?rev=1&content-type=text/plain

--
Pixel

_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to