This commit is contained in:
Igor Pečovnik 2016-01-15 17:46:46 +01:00
parent c382673b96
commit dc0d8d35d7

View File

@ -49,11 +49,6 @@ return 1
fi
}
if [[ "$UID" == 0 ]]; then
# Battery info for Allwinner
HARDWARE=$(cat /proc/cpuinfo | grep Hardware | awk '{print $3}')
# for root users which have acces to hw and allwinner and old kernel
@ -109,12 +104,11 @@ if [[ "$UID" == 0 && ($HARDWARE = "sun7i" || $HARDWARE = "Allwinner") ]]; then
else
batt_status=" discharging"
fi
if [[ "$CHARG_IND" == "1" && "$batt_percent" -gt "100" ]]; then
if [[ "$CHARG_IND" == "1" && "$batt_percent" -gt "100" ]]; then
batt_status=" uncalibrated"
batt_percent=100
fi
fi
fi
fi
load=$(cat /proc/loadavg | awk '{print $1}')