[pisa-src] r945 - trunk/tools

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Fri, 04 Sep 2009 19:24:43 +0200

Author: biurrun
Date: Fri Sep  4 19:24:43 2009
New Revision: 945

Log:
Convert -i parameter into --interface long option.

Modified:
   trunk/tools/switch-ip
   trunk/tools/switch-ip.bareasus
   trunk/tools/switch-ip.owrtasus

Modified: trunk/tools/switch-ip
==============================================================================
--- trunk/tools/switch-ip       Fri Sep  4 18:47:29 2009        (r944)
+++ trunk/tools/switch-ip       Fri Sep  4 19:24:43 2009        (r945)
@@ -80,7 +80,7 @@
     echo " arponly: change only ARP entries without running ifconfig/iwconfig"
     echo ""
     echo "[options] can be one or more of them:"
-    echo " -i <ifname> : give interface name of wireless device explicitly"
+    echo " --interface=<ifname> : give interface name of wireless device 
explicitly"
     echo " --myip1=xxx.xxx.xxx.xxx : my IP address for the 1st access point"
     echo " --myip2=xxx.xxx.xxx.xxx : my IP address for the 2nd access point"
     echo " --apip1=xxx.xxx.xxx.xxx : IP address of the 1st access point"
@@ -118,13 +118,13 @@
     exit 1
 fi
 
-optarr=$(getopt -o 'hi:' --long 
'myip1:,myip2:,apip1:,apip2:,apssid1:,apssid2:,apmac1:,apmac2:,udhcpc,route_extra_cmd,nowep,help'
 -- "$@")
+optarr=$(getopt -o 'h:' --long 
'myip1:,myip2:,apip1:,apip2:,apssid1:,apssid2:,apmac1:,apmac2:,interface:,udhcpc,route_extra_cmd,nowep,help'
 -- "$@")
 
 i=0
 while true; do
     case ${optarr[$i]} in
         -h | --help ) usage; exit 0;;
-        -i )
+        --interface )
             echo "my wireless interface = ${optarr[$(($i+1))]}"
             IFWLAN=${optarr[$(($i+1))]}
             i=$(($i+2))

Modified: trunk/tools/switch-ip.bareasus
==============================================================================
--- trunk/tools/switch-ip.bareasus      Fri Sep  4 18:47:29 2009        (r944)
+++ trunk/tools/switch-ip.bareasus      Fri Sep  4 19:24:43 2009        (r945)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-./switch-ip -i eth1 --udhcpc --route_extra_cmd \
+./switch-ip --interface=eth1 --udhcpc --route_extra_cmd \
           --myip1=192.168.5.101 --myip2=192.168.5.101 \
           --apip1=192.168.5.62 --apip2=192.168.5.63 \
           --apmac1=00:22:15:21:AF:2D --apmac2=00:22:15:26:AD:1A \

Modified: trunk/tools/switch-ip.owrtasus
==============================================================================
--- trunk/tools/switch-ip.owrtasus      Fri Sep  4 18:47:29 2009        (r944)
+++ trunk/tools/switch-ip.owrtasus      Fri Sep  4 19:24:43 2009        (r945)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-./switch-ip -i eth1 --udhcpc --route_extra_cmd \
+./switch-ip --interface=eth1 --udhcpc --route_extra_cmd \
           --myip1=192.168.6.101 --myip2=192.168.6.101 \
           --apip1=192.168.6.52 --apip2=192.168.6.54 \
           --apmac1=00:0F:A3:11:17:88 --apmac2=00:0F:A3:1A:C6:5F \

Other related posts:

  • » [pisa-src] r945 - trunk/tools - Diego Biurrun