bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: in difference time, can automatic change the default boot item?


From: adrian15
Subject: Re: in difference time, can automatic change the default boot item?
Date: Wed, 07 May 2008 15:09:37 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070727)

Bean escribió:

checktime * * * * *

The five parameters for checktime is the same as in crontab:minute,
hour, day, month and day of week. this command check if the current
daytime is within the range specified by the parameters, and return
true or false accordingly. Combined this with the script support for
grub2, you can perform some operation in a selected time range.
 Can you please send me the patch to see if it is easy for me to add the
code to SGD or not?

 Thank you.

Hi,

This is the patch for grub4dos, it'd be trivial to integrate it with
GRUB Legacy. However, command checktime returns a boolean value, you
need some sort conditional statement to make it useful, in grub4dos,
you can use &&:

checktime * * * * * && default 0

But GRUB Legacy doesn't support this, so you need to think of some
other way to make it work, like embed the command in checktime itself.

I have received the patch but I have not worked in it yet.

You say that checktime works as in crontab.minute.

Can you please give me two examples (one positive and one negative) to see if I undertand how it works.

Thank you.

adrian15

--
Support free software. Donate to Super Grub Disk. http://supergrub.forjamari.linex.org/?section=donate




reply via email to

[Prev in Thread] Current Thread [Next in Thread]