diff --git a/powerwall.sh b/powerwall.sh index 0c59675c..7e1e2520 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -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 ${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