luci-mod-battstatus: get RavPower RP-WD009 working again
authorJinnah Dylan Hosein <redacted>
Thu, 26 Mar 2026 22:24:40 +0000 (15:24 -0700)
committerPaul Donald <redacted>
Fri, 27 Mar 2026 13:46:01 +0000 (14:46 +0100)
luci-mod-battstatus: Restore support for RavPower RP-WD009

Restore support for RavPower RP-WD009 devices

Prior to commit d42dce3, this script used to work for providing battery status on RavPower RP-WD009 devices.

This change restores functionality for this device.

Signed-off-by: Jinnah Dylan Hosein <redacted>
modules/luci-mod-battstatus/root/usr/libexec/rpcd/luci.battstatus

index e397f3d7c3a67acc06d97194759f0d4e73c5fea8..5bec3f1f3e6e61f8eaf294f0da3f71745a1028c5 100755 (executable)
@@ -16,7 +16,7 @@ case "$1" in
                                json_add_object "$model"
 
                                case "$board" in
-                                       hootoo,ht-tm05)
+                                       hootoo,ht-tm05|ravpower,rp-wd009)
                                                if [ -f /usr/sbin/i2cset ] && [ -f /usr/sbin/i2cget ]; then
                                                        json_add_boolean valid 1
                                                        if [ $(i2cset -y 0 0x0a 0x0a 0x01 && i2cget -y 0 0x0a 0x0a) = 0x40 ]; then
git clone https://git.99rst.org/PROJECT