Initial Commit
This commit is contained in:
12
BTN_0
Executable file
12
BTN_0
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Code for the mode switch on Cudy TR3000
|
||||||
|
|
||||||
|
. /lib/functions.sh
|
||||||
|
|
||||||
|
if grep -E '^ gpio-512 .*) in hi' /sys/kernel/debug/gpio ; then
|
||||||
|
echo 1 > /sys/class/leds/red:power/brightness
|
||||||
|
else
|
||||||
|
echo 0 > /sys/class/leds/red:power/brightness
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
|
||||||
Reference in New Issue
Block a user