problem with restart script in perl
hello
i'm writing a script that perform a restart loop.
when the computer boots, it runs a perl script (that's in init.d folder) and perform restart by writing
sleep(40);
exec("reboot");
(i've changed the reboot so it can be ran without password).
thing is, when the system reboots the grub menu opens (not always, about 1 out of 2 times) and the user has to press "enter" in order for the system to boot.
i've changed the /etc/default/grub file so it'll timeout after 1sec (and ran update-grub) but sometimes the menu loads and does boot after 1sec automaticaly as it should.
how can i disable the menu from loading at all?
i'm using ubuntu 9.10 and GRUB 1.97.
if this is the wrong forum pls refer me to the right one
thanks a lot in advance!!!
Last edited by erezscgb; 02-01-2010 at 01:20 PM.
|