diff --git a/inc/power.inc.sh b/inc/power.inc.sh index bc36d8da..6daa2cdc 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -909,21 +909,10 @@ PDUCONTROL(){ 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 - # if [ "${PORT_SEL}" == "" ]; then - # sleep 1s - # unset PORTSEL - # PDUCONTROL - # exit 0 - # fi ;; - # *) - # if [ "${PORT_SEL}" == "" ]; then - # unset PORTSEL - # PDUCONTROL - # exit 0 - # fi - # ;; + esac + [ "${PORT_SEL}" == "" ] && unset PORTSEL else echo -e "${idsCL[LightRed]}Not a valid port number${idsCL[Default]}" unset PORTSEL