summaryrefslogtreecommitdiffstats
path: root/makefu/1systems/x/x13/toggle_brightness
blob: dc1436cb6b43bd917ad7995602f9c5150366e96f (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
proc=/proc/acpi/ibm/lcdshadow
status=$(awk '/status:/{print $2}' "$proc")
if [ "$status" -eq 0 ];then
  echo 1 > "$proc"
else
  echo 0 > "$proc"
fi