shithub: riscv

ref: 3a77c01f43821dcc4f7cae54aff89bb20f2d95a5
dir: /sys/src/cmd/bitsy/light.rc/

View raw version
#!/bin/rc

#master file is /sys/src/cmd/bitsy/light.rc

switch($1){
case on
	echo -n 2 1 0x80 > /dev/backlight
case off
	echo -n 2 0 0x80 > /dev/backlight
case auto
	echo -n 1 1 0x80 > /dev/backlight
case *
	echo -n 2 1 $1 > /dev/backlight
}