#! /bin/sh BIN=/usr/sbin/radeontool STATUS=/var/run/ibm-t43-backlight test -x "$BIN" || exit 0 if test "$1"; then if test "$1" = "1"; then test -e "$STATUS" && rm "$STATUS" $BIN light on elif test "$1" = "0"; then $BIN light off touch "$STATUS" fi else if test ! -e "$STATUS"; then $BIN light off touch "$STATUS" else $BIN light on rm "$STATUS" fi fi