Skip to content

Instantly share code, notes, and snippets.

@niklas-heer
Created April 30, 2013 16:56
Show Gist options
  • Save niklas-heer/5490084 to your computer and use it in GitHub Desktop.
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.
#!/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