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>
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