#!/bin/sh if [ -z "$1" ] then times=$2 time=$3 if [ -z "$2" ] then times=3 fi if [ -z "$3" ] then time=0.2 fi for i in `seq 1 $times`; do $0 toggle; sleep $time; $0 toggle; sleep $time done else if [ $1 = "toggle" ] then status=`cat /proc/acpi/ibm/light | grep status | awk '{print $2}'` if [ $status = "on" ] then echo off > /proc/acpi/ibm/light else echo on > /proc/acpi/ibm/light fi fi fi exit 0