Datecheck command (date comparison)

2009-05-20 Thread Chris Umphress
Hey, I've written a command that allows you to take different actions based on the day. Would anybody else find it useful? Here are some of my tests from yesterday: grub if [ datecheck -gt 2009-3-20 = datecheck -lt 2009-06-21 ]; then echo; ech o It is spring!; fi It is spring! error:

Re: Datecheck command (date comparison)

2009-05-20 Thread Felix Zielcke
Am Mittwoch, den 20.05.2009, 09:43 -0500 schrieb Chris Umphress: I've written a command that allows you to take different actions based on the day. Would anybody else find it useful? Here are some of my tests from yesterday: Hello, can't this just be done with the variables Bean introduced

Re: Datecheck command (date comparison)

2009-05-20 Thread Chris Umphress
On Wed, May 20, 2009 at 10:35 AM, Felix Zielcke fziel...@z-51.de wrote: can't this just be done with the variables Bean introduced with his datehook stuff[0]? $YEAR, $MONTH, $DAY, $HOUR, $MINUTE, $SECOND and $WEEKDAY. Though I never used this myself. [0]

Re: [PATCH] ata.mod under qemu

2009-05-20 Thread Christian Franke
The attached patch should fix this. It should also prevents misleading error messages if a device does not exist. 2009-05-20 Christian Franke fra...@computer.org * disk/ata.c: (grub_ata_wait_not_busy): Add debug output of status register. (grub_ata_identify): Suppress

Re: [PATCH] ata.mod under qemu

2009-05-20 Thread Pavel Roskin
On Wed, 2009-05-20 at 23:40 +0200, Christian Franke wrote: The attached patch should fix this. It should also prevents misleading error messages if a device does not exist. 2009-05-20 Christian Franke fra...@computer.org * disk/ata.c: (grub_ata_wait_not_busy): Add debug output of

Re: Datecheck command (date comparison)

2009-05-20 Thread Chris Umphress
On Wed, May 20, 2009 at 10:01 PM, Bean bean12...@gmail.com wrote: Hi, Have you forgotten insmod datehook ? It looks like I was. Thanks! -- Chris Umphress http://www.epicvoyage.org ___ Grub-devel mailing list Grub-devel@gnu.org