Add match on "battery" instead of just "BAT" to appease some unices

- required for odroid go advance
This commit is contained in:
valadaa48 2020-02-22 22:16:57 -05:00
parent 8d6c7d6753
commit 2dbb13d8dd

View File

@ -1094,7 +1094,7 @@ static bool frontend_unix_powerstate_check_acpi_sysfs(
#ifdef HAVE_LAKKA_SWITCH
if (node && strstr(node, "max170xx_battery"))
#else
if (node && strstr(node, "BAT"))
if (node && (strstr(node, "BAT") || strstr(node, "battery")))
#endif
check_proc_acpi_sysfs_battery(node,
&have_battery, &charging, seconds, percent);