diff --git a/usr/local/bin/custom/poe.sh b/usr/local/bin/custom/poe.sh index 8ea01fe..79dcbb1 100644 --- a/usr/local/bin/custom/poe.sh +++ b/usr/local/bin/custom/poe.sh @@ -31,10 +31,10 @@ expect { } send "configure terminal\r" expect "(config)#" -send "interface $port\r" -expect "(eth-$port)#" +send "interface $switch_port\r" +expect "(eth-$switch_port)#" send "no power-over-ethernet\r" -expect "(eth-$port)#" +expect "(eth-$switch_port)#" send "exit\r" expect "(config)#" send "exit\r" @@ -63,10 +63,10 @@ expect { } send "configure terminal\r" expect "(config)#" -send "interface $port\r" -expect "(eth-$port)#" +send "interface $switch_port\r" +expect "(eth-$switch_port)#" send "power-over-ethernet\r" -expect "(eth-$port)#" +expect "(eth-$switch_port)#" send "exit\r" expect "(config)#" send "exit\r"