Created
April 30, 2013 16:56
-
-
Save niklas-heer/5490084 to your computer and use it in GitHub Desktop.
A simple Shell-Script to turn the Thinkpad-LED-Light on or off.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$1" = "on" ]; then | |
echo 1 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight/brightness | |
elif [ "$1" = "off" ]; then | |
echo 0 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight/brightness | |
else | |
echo "Error: Wrong paramater! Only on/off allowed!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment