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

5
README.md Normal file
View File

@@ -0,0 +1,5 @@
# OpenWRT Scripts
This repo contains scripts to customize the behavior of the [Cudy TR3000](https://www.cudy.com/en-eu/products/tr3000-1-0)
travel router.
procd scripts for buttons live in `/etc/rc.button`.