Update powerwall.sh

This commit is contained in:
2023-12-03 13:31:18 -06:00
parent 8150954c3d
commit 169ac14278

View File

@@ -1612,6 +1612,11 @@ PDUCONTROL(){
echo -en "\n\n${idsCL[LightCyan]}Turning ${portsel_power_disp}${idsCL[LightCyan]} port ${idsCL[Yellow]}${PORTSEL}${idsCL[Default]} ... "
run=$(snmpset -v 1 -c private ${PW_APCPDU_IP} .1.3.6.1.4.1.318.1.1.12.3.3.1.1.4.${PORTSEL} i ${portsel_change} >/dev/null 2>&1)
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
echo
sleep 1s
unset PORTSEL
PDUCONTROL
exit 0
;;
*)
if [ "${PORT_SEL}" == "" ]; then