help-grub
[Top][All Lists]
Advanced

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

Re: conditional boot depending on date


From: Jordan Uggla
Subject: Re: conditional boot depending on date
Date: Sun, 2 Dec 2012 22:45:09 -0800

On Thu, Nov 29, 2012 at 3:26 AM, david manyƩ <address@hidden> 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



reply via email to

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