commit 07c35143425848767b1db4cd684cce79b49ce651 Author: eneller Date: Sun Nov 16 11:43:47 2025 +0100 Initial Commit diff --git a/BTN_0 b/BTN_0 new file mode 100755 index 0000000..fc75674 --- /dev/null +++ b/BTN_0 @@ -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 + diff --git a/README.md b/README.md new file mode 100644 index 0000000..6a02a7d --- /dev/null +++ b/README.md @@ -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`.