We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4ac9a6 commit 782532eCopy full SHA for 782532e
modules/luci-mod-battstatus/root/usr/libexec/rpcd/luci.battstatus
@@ -26,6 +26,16 @@ case "$1" in
26
json_add_string message "Need pcat-mgr"
27
fi
28
;;
29
+ ariaboard,photonicat2)
30
+ if [ -d /sys/class/power_supply/battery ]; then
31
+ json_add_boolean valid 1
32
+ json_add_boolean charging $(cat /sys/class/power_supply/charger/online)
33
+ json_add_int percentage $(cat /sys/class/power_supply/battery/capacity)
34
+ else
35
+ json_add_boolean valid 0
36
+ json_add_string message "Need kmod-photonicat-pm"
37
+ fi
38
+ ;;
39
hootoo,ht-tm05)
40
if [ -f /usr/sbin/i2cset ] && [ -f /usr/sbin/i2cget ]; then
41
json_add_boolean valid 1
0 commit comments