Update powerwall.sh
This commit is contained in:
@@ -1620,8 +1620,7 @@ PDUCONTROL(){
|
||||
|
||||
if [ "${PORT_SEL}" != "" ]; then
|
||||
portdesc=$(snmpwalk -t 1 -r 0 -v 1 -c public ${PW_APCPDU_IP} .1.3.6.1.4.1.318.1.1.12.3.3.1.1.2.${PORT_SEL} -O vq 2> /dev/null | sed -e 's/"//g')
|
||||
c=0; spc=''; spc1=`expr 28 - ${#portdesc}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
||||
echo -e "${idsCL[LightCyan]}${portdesc}${spc}${idsCL[Default]}: ${portsel_power_disp}${idsCL[Default]}\n"
|
||||
echo -e "Port {PORT_SEL}) ${idsCL[LightCyan]}${portdesc} ${idsCL[Default]}: ${portsel_power_disp}${idsCL[Default]}\n"
|
||||
fi
|
||||
|
||||
echo -en "${idsCL[LightCyan]}Are you sure you wish to turn ${portsel_change_power_disp}${idsCL[LightCyan]} port ${idsCL[Yellow]}${PORTSEL}${idsCL[Default]} (y/N): "
|
||||
|
||||
Reference in New Issue
Block a user