#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>

int main()
{
   setuid( 0 );
   return system(
"dev=/sys/devices/platform/TOS6208:00/firmware_node/kbd_backlight_mode\n"
"val=2\n"
"case \"`cat $dev`\" in\n"
"    2) val=16 ;;\n"
"    16) val=8 ;;\n"
"esac\n"
"echo $val > $dev\n"
		 );
}
