make POSIX sh compliant
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# for UPS monitoring with pwrstatd
|
||||
# for UPS monitoring with NUT
|
||||
#
|
||||
#POWER="$(pwrstat -status | grep "Load" | awk '{print $2}')W"
|
||||
#CHARGE=$(pwrstat -status | grep "Battery Capacity" | awk '{print $3$4}')
|
||||
#if [[ "$CHARGE" == "100%" ]]; then
|
||||
#POWER="$(upsc titanium-power@localhost | grep ups.realpower: | awk '{print $2}')W"
|
||||
#CHARGE="$(upsc titanium-power@localhost | grep battery.charge: | awk '{print $2}')%"
|
||||
#if [ "$CHARGE" = "100%" ]; then
|
||||
# echo $POWER
|
||||
#else
|
||||
# echo "$CHARGE $POWER"
|
||||
|
||||
Reference in New Issue
Block a user