mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Fix for not showing battery on Odroid C2
This commit is contained in:
@@ -73,7 +73,7 @@ fi
|
||||
# legacy kernel
|
||||
axp_dir="/sys/class/power_supply"
|
||||
if [[ -e "$axp_dir" && -e "$axp_dir/battery" ]]; then
|
||||
if [[ (("$(cat $axp_dir/battery/voltage_now)" -gt "0" )) ]]; then
|
||||
if [[ (("$(cat $axp_dir/battery/voltage_now)" -gt "5" )) ]]; then
|
||||
status_battery_text=" "$(cat $axp_dir/battery/status | awk '{print tolower($0)}')
|
||||
battery_percent=$(cat $axp_dir/battery/capacity)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user