Update powerwall.sh

This commit is contained in:
2024-01-03 11:28:30 -06:00
parent 28264b774f
commit a75afffbbe

View File

@@ -752,6 +752,10 @@ fi
checkpower) CHECKPOWER ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};; checkpower) CHECKPOWER ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};;
check) check)
([ "${2}" == "" ] || ([ "${2}" != "power" ] && [ "${2}" != "temp" ])) && checkrun="-help" || checkrun=${2} ([ "${2}" == "" ] || ([ "${2}" != "power" ] && [ "${2}" != "temp" ])) && checkrun="-help" || checkrun=${2}
if [ "${3}" == "" ]; then
CHECKPOWER
CHECKTEMP
else
case ${checkrun} in case ${checkrun} in
power) CHECKPOWER ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};; power) CHECKPOWER ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};;
temp) CHECKTEMP ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};; temp) CHECKTEMP ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};;
@@ -774,6 +778,7 @@ fi
exit 0 exit 0
;; ;;
esac esac
fi
;; ;;
test) test)
# while IFS=$'\t' read id date hum ;do # while IFS=$'\t' read id date hum ;do