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.