|
|
@ -61,41 +61,41 @@ update() { |
|
|
|
)" |
|
|
|
)" |
|
|
|
if [ "$BATSTATUS" = "C" ]; then |
|
|
|
if [ "$BATSTATUS" = "C" ]; then |
|
|
|
if [ "$PCT" -lt 20 ]; then |
|
|
|
if [ "$PCT" -lt 20 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 30 ]; then |
|
|
|
elif [ "$PCT" -lt 30 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 40 ]; then |
|
|
|
elif [ "$PCT" -lt 40 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 60 ]; then |
|
|
|
elif [ "$PCT" -lt 60 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 80 ]; then |
|
|
|
elif [ "$PCT" -lt 80 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 90 ]; then |
|
|
|
elif [ "$PCT" -lt 90 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
else |
|
|
|
else |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
fi |
|
|
|
fi |
|
|
|
else |
|
|
|
else |
|
|
|
if [ "$PCT" -lt 10 ]; then |
|
|
|
if [ "$PCT" -lt 10 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 20 ]; then |
|
|
|
elif [ "$PCT" -lt 20 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 30 ]; then |
|
|
|
elif [ "$PCT" -lt 30 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 40 ]; then |
|
|
|
elif [ "$PCT" -lt 40 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 50 ]; then |
|
|
|
elif [ "$PCT" -lt 50 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 60 ]; then |
|
|
|
elif [ "$PCT" -lt 60 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 70 ]; then |
|
|
|
elif [ "$PCT" -lt 70 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 80 ]; then |
|
|
|
elif [ "$PCT" -lt 80 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
elif [ "$PCT" -lt 90 ]; then |
|
|
|
elif [ "$PCT" -lt 90 ]; then |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
else |
|
|
|
else |
|
|
|
BATSTATUS="" |
|
|
|
BATSTATUS="$PCT% " |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|