Added charge status when fully charged in FreeBSD
This commit is contained in:
parent
a48d52b361
commit
9669d6e759
@ -7,10 +7,12 @@ if [ "$os" = "FreeBSD" ]; then
|
|||||||
clock=`date +'%Y-%m-%d %H:%M'`
|
clock=`date +'%Y-%m-%d %H:%M'`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$chargestate" = -1 ]; then
|
if [ "$chargestate" = 2 ]; then
|
||||||
chargestatus=charging
|
chargestatus="charging"
|
||||||
|
elif [ "$chargestate" = 0 ]; then
|
||||||
|
chargestatus="full/not charging"
|
||||||
else
|
else
|
||||||
chargestatus=discharging
|
chargestatus="discharging"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$chargestatus" - "$batterypercent"% - "$clock"
|
echo "$chargestatus" - "$batterypercent"% - "$clock"
|
||||||
|
Loading…
Reference in New Issue
Block a user