Update powerwall.sh
This commit is contained in:
@@ -753,12 +753,13 @@ fi
|
|||||||
check)
|
check)
|
||||||
([ "${2}" == "" ] || ([ "${2}" != "power" ] && [ "${2}" != "temp" ])) && checkrun="-help" || checkrun=${2}
|
([ "${2}" == "" ] || ([ "${2}" != "power" ] && [ "${2}" != "temp" ])) && checkrun="-help" || checkrun=${2}
|
||||||
if [ "${3}" == "" ]; then
|
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};;
|
||||||
|
all)
|
||||||
|
CHECKTEMP ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10}
|
||||||
|
CHECKPOWER ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10}
|
||||||
|
;;
|
||||||
-h|-help)
|
-h|-help)
|
||||||
echo -e "\nUsage: ${idsCL[Yellow]}[powerwall or pw] ${idsCL[LightYellow]}check ${idsCL[LightCyan]}{type} {flags} ${idsCL[Default]} {\n"
|
echo -e "\nUsage: ${idsCL[Yellow]}[powerwall or pw] ${idsCL[LightYellow]}check ${idsCL[LightCyan]}{type} {flags} ${idsCL[Default]} {\n"
|
||||||
width=35
|
width=35
|
||||||
@@ -778,7 +779,6 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user