All pastes #86344 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-07-12 19:45 UTC
rendered paste body
#!/bin/bash
#################
# LIGHT FLASHER #
#################
# Stupid little bash script
# To flash your IBM Thinkpad light
# For IBM Thinkpad laptops
#   -- Wesley S
###
# Usage: ./ibmflash <number of times>

counter=0
until=$1

while [ "$counter" -lt "$until" ]
do
  echo -n "$counter "
  counter=`expr $counter + 1`
  echo on >/proc/acpi/ibm/light
  echo off >/proc/acpi/ibm/light
  echo -n "Flash! "
done
exit 0