On Thu, Nov 29, 2012 at 3:26 AM, david manyé <[email protected]> wrote:
> hello,
>
> i'd like to change the default boot entry depending on the date. more
> precisely, i'd like to boot a concrete option if the machine boots in a
> given day of the week and time range. i've seen there is a date command that
> outputs the info i need to check but i don't know how.
>
> is it possible?

"insmod datehook" will create the variables $DAY, $HOUR,$MINUTE,
$MONTH, $SECOND, $WEEKDAY, and $YEAR (remember that depending on how
your firmware is configured, the time might be local or UTC).

-- 
Jordan Uggla

_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to