navigaid
12/19/2016 - 7:13 AM

ThinkPad thinklight blink shell script

ThinkPad thinklight blink shell script

#!/bin/bash
while true
do
	sleep 1
	echo 0 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight/brightness
	sleep 1
	echo 1 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight/brightness
done

# below is the original script
# while true;do sleep 1; echo 0 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight/brightness;sleep 1;echo 1 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight/brightness;done;