From 80d8188e0b7e6a8fd195aef0c35576f0c6037b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandino=20Araico=20S=C3=A1nchez?= Date: Tue, 25 Jan 2022 01:53:03 -0600 Subject: [PATCH] Agregarle 0 al MY_PORT --- scripts/test-iperf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/test-iperf b/scripts/test-iperf index c753088..af3b375 100755 --- a/scripts/test-iperf +++ b/scripts/test-iperf @@ -17,6 +17,10 @@ if [[ -z $MY_PORT ]] ; then exit 27 fi +if [[ $MY_PORT -lt 10 ]] ; then + MY_PORT="0$MY_PORT" +fi + for VLAN in {10..4000} ; do if [[ -f /etc/netdev/vlan.$VLAN.csv ]] ; then VLAN_CONF=`grep $SERVER_SERIAL \