Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- echo "Content-type: text/html"
- echo ""
- x=`cat /sys/class/leds/tp-link:blue:relay/brightness`
- if [ "$x" -eq 0 ]
- then
- echo "<h1>ON</h1>"
- echo 1 > /sys/class/leds/tp-link:blue:relay/brightness
- else
- echo "<h1>OFF</h1>"
- echo 0 > /sys/class/leds/tp-link:blue:relay/brightness
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement