On Wed, Aug 06, 2008 at 07:02:46PM +0800, Bean wrote:
> if checktime * * * 3-5 *; then
>   background_image /spring.png
> fi
> 
> if checktime * * * 6-8 *; then
>   background_image /summer.png
> fi
> 
> if checktime * * * 9-11 *; then
>   background_image /fall.png
> fi
> 
> if checktime * * * 1-2,12 *; then
>   background_image /winter.png
> fi

Nifty :-)

> +FUNCTION(grub_get_datetime)
> +     pushl   %ebp
> +     pushl   %ebx
> +
> +     pushl   %eax
> +     pushl   %edx
> +
> +     call    prot_to_real
> +     .code16
> +
> +     movb    $2, %ah
> +     clc
> +     int     $0x1a

Can we make this portable by accessing 0x70 / 0x71 I/O ports instead?

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to