Update powerwall.sh
This commit is contained in:
@@ -1632,10 +1632,12 @@ 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)
|
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 -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
|
if [ "${PORT_SEL}" == "" ]; then
|
||||||
sleep 1s
|
sleep 1s
|
||||||
unset PORTSEL
|
unset PORTSEL
|
||||||
PDUCONTROL
|
PDUCONTROL
|
||||||
exit 0
|
exit 0
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [ "${PORT_SEL}" == "" ]; then
|
if [ "${PORT_SEL}" == "" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user