Update powerwall.sh

This commit is contained in:
2023-12-11 22:15:25 -06:00
parent e2186670c3
commit 76e4efdc18

View File

@@ -2311,7 +2311,11 @@ fi
checktemp) CHECKTEMP ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};; checktemp) CHECKTEMP ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};;
checkpower) CHECKPOWER ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};; checkpower) CHECKPOWER ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};;
check) check)
([ "${3}" == "" ] || ([ "${2}" != "power" ] && [ "${2}" != "temp" ])) && checkrun="-help" || checkrun=${2} if [ "${3}" == "" ] || ([ "${2}" != "power" ] && [ "${2}" != "temp" ]); then
checkrun="-help"
else
checkrun=${2}
fi
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};;