Update powerwall.sh

This commit is contained in:
2023-05-15 21:50:38 -05:00
parent 91ec5e9b88
commit b0c7e5b996

View File

@@ -550,10 +550,12 @@ fi
# if [ ${action-x} ]; then
case $action in
stopall) STOPALL_SERVICES;;
startall) STARTALL_SERVICES;;
restartall) RESTART_SERVICES;;
check-services) CHECK_SERVICES;;
services)
[ "${2}" == "stop" ] && STOPALL_SERVICES
[ "${2}" == "start" ] && STARTALL_SERVICES
[ "${2}" == "restart" ] && RESTART_SERVICES
[ "${2}" == "status" ] && CHECK_SERVICES
;;
checktemp) CHECKTEMP ${2};;
checkpower) CHECKPOWER;;
test) TEST ${2};;
@@ -589,11 +591,30 @@ fi
fi
;;
update);;
*)
status)
CHECKPOWER
CHECKTEMP
CHECK_SERVICES
;;
*)
echo -e "${idsCL[White]} Usage: ${idsCL[LightCyan]}powerwall {option}"
echo
echo -e " ${idsCL[Yellow]}status ${idsCL[Default]}--> PowerWall Status Information"
echo -e " ${idsCL[Yellow]}checktemp ${idsCL[Default]}--> Check Temperature Sensors"
echo -e " ${idsCL[Yellow]}checkpower ${idsCL[Default]}--> Check Power Readings"
echo
echo -e " ${idsCL[Yellow]}services ${idsCL[Default]}--> Manage all monitor services at once"
echo -e " ${idsCL[LightYellow]} {start/stop/restart/status}"
echo -e " ${idsCL[Yellow]}startall ${idsCL[Default]}--> Show VPN Info"
echo -e " ${idsCL[Yellow]}restartall ${idsCL[Default]}--> Run Speedtest Comparison (with and w/o VPN)"
echo
echo -e " ${idsCL[Yellow]}update-allservices ${idsCL[Default]}--> Update all services ( -f = force update)"
echo -e " ${idsCL[Yellow]}update-service <service> ${idsCL[Default]}--> Update specified service ( -f = force update)"
echo -e " ${idsCL[Yellow]}update-list ${idsCL[Default]}--> List available releases"
echo
echo -e " ${idsCL[Yellow]}update ${idsCL[Default]}--> Check for and install new PowerWall Script updates"
echo
;;
esac
# fi