From a1db19d0a0a6cec035ec166e7a9f18e26c46cb30 Mon Sep 17 00:00:00 2001 From: Michael Grundler Date: Mon, 22 Apr 2024 22:52:15 +0200 Subject: [PATCH] Added and verified GL.iNet GL-MT3000 Beryl AX --- README.md | 2 ++ src/usr/share/slide-switch/functions.sh-cut | 2 +- src/usr/share/slide-switch/switch-data.json-cut | 9 +++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b97877..849bf7e 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ position of each switch. To disable or re-enable this behaviour, run | [GL.iNet GL-AR750S][] | mode | dot / clear | :heavy_check_mark: | | | [GL.iNet GL-E750][] | mode | dot / clear | :heavy_check_mark: | | | [GL.iNet GL-MT1300][] | mode | dot / clear | :heavy_check_mark: | | +| [GL.iNet GL-MT3000][] | mode | dot / clear | :heavy_check_mark: | | | [GL.iNet GL-MT300A][] | mode | left / center / right | :heavy_check_mark: | | | [GL.iNet GL-MT300N v1][] | mode | left / center / right | | | | [GL.iNet GL-MT300N v2][] | mode | left / center / right | :heavy_check_mark: | | @@ -76,6 +77,7 @@ where the switch data has been tested and verified correct by users. [GL.iNet GL-AR750S]: https://openwrt.org/toh/gl.inet/gl-ar750s [GL.iNet GL-E750]: https://openwrt.org/toh/gl.inet/gl-e750 [GL.iNet GL-MT1300]: https://openwrt.org/toh/gl.inet/gl-mt1300_v1 +[GL.iNet GL-MT3000]: https://openwrt.org/toh/gl.inet/gl-mt3000 [GL.iNet GL-MT300A]: https://openwrt.org/toh/gl.inet/gl-mt300a [GL.iNet GL-MT300N v1]: https://openwrt.org/toh/gl.inet/gl-mt300n_v1 [GL.iNet GL-MT300N v2]: https://openwrt.org/toh/gl.inet/gl-mt300n_v2 diff --git a/src/usr/share/slide-switch/functions.sh-cut b/src/usr/share/slide-switch/functions.sh-cut index a79d40d..d83bbd4 100644 --- a/src/usr/share/slide-switch/functions.sh-cut +++ b/src/usr/share/slide-switch/functions.sh-cut @@ -36,7 +36,7 @@ initd_dir=@sysconfdir@/init.d board_name=/tmp/sysinfo/board_name gpio_table=/sys/kernel/debug/gpio -device_tree_keys=/proc/device-tree/keys +device_tree_keys=/proc/device-tree/gpio-keys hotplug_call=/sbin/hotplug-call rc_button=/etc/rc.button diff --git a/src/usr/share/slide-switch/switch-data.json-cut b/src/usr/share/slide-switch/switch-data.json-cut index 8300df1..f2675e2 100644 --- a/src/usr/share/slide-switch/switch-data.json-cut +++ b/src/usr/share/slide-switch/switch-data.json-cut @@ -107,6 +107,15 @@ } } }, + "glinet,gl-mt3000": { + "mode": { + "keys": [ "mode" ], + "positions": { + "lo": "dot", + "hi": "clear" + } + } + }, "glinet,gl-mt300a": { "mode": { "keys": [ "0x100", "0x101" ],