mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
luci-mod-battstatus: get RavPower RP-WD009 working again
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 <jdh@jdh.wtf>
This commit is contained in:
committed by
Paul Donald
parent
773c8e5889
commit
3e58d881f2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user