#!/bin/bash

if test "$1" = start -o "$1" = on; then

    loop bash -c '
    set-fb-color $(random 255 3)
    echo 255 > $lcd_backlight
    sleep 1
    echo 0 > $lcd_backlight
    sleep 1
'
else
    stop-loop
fi

#ask-result Do you see the lcd backlight flashing on and off?
