From 07c35143425848767b1db4cd684cce79b49ce651 Mon Sep 17 00:00:00 2001 From: eneller Date: Sun, 16 Nov 2025 11:43:47 +0100 Subject: [PATCH] Initial Commit --- BTN_0 | 12 ++++++++++++ README.md | 5 +++++ 2 files changed, 17 insertions(+) create mode 100755 BTN_0 create mode 100644 README.md 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`.