Initial Commit

This commit is contained in:
eneller
2025-11-16 11:43:47 +01:00
commit 07c3514342
2 changed files with 17 additions and 0 deletions

12
BTN_0 Executable file
View 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