6 while read hook_name
; do
9 light_status
=$
(awk '/^status:/ {print $2}' /proc
/acpi
/ibm
/light
)
11 if [ "${light_status}" = "on" ] ; then
12 echo off | sudo
tee /proc
/acpi
/ibm
/light
>/dev
/null
16 if [ "${light_status}" = "on" ] ; then
17 echo on | sudo
tee /proc
/acpi
/ibm
/light
>/dev
/null
24 if [ $# -ne 1 ] ; then
25 echo >&2 "Usage: $0 <command>"