diff options
| author | egon_ffj <egon@freifunk-jena.de> | 2011-03-11 06:46:07 (GMT) | 
|---|---|---|
| committer | egon_ffj <egon@freifunk-jena.de> | 2011-03-11 06:46:07 (GMT) | 
| commit | 714e0c078f793eda3cdc3dac9e3548c781c17eb4 (patch) | |
| tree | eff0770fe69838e6c502456a3017cfd9961d42b0 /files/sbin | |
| parent | 265ef07980cc1f6458b50544262bad447069523a (diff) | |
 * stripped ip-octet-splitting cause octet 3 is already available
Diffstat (limited to 'files/sbin')
| -rwxr-xr-x | files/sbin/setup_router | 7 | 
1 files changed, 2 insertions, 5 deletions
| diff --git a/files/sbin/setup_router b/files/sbin/setup_router index 737d0f3..710ad5b 100755 --- a/files/sbin/setup_router +++ b/files/sbin/setup_router @@ -15,14 +15,11 @@ if [[ $router = "j" ]]        sleep 1;        if [[ 99 -lt $LOSS ]]; then          NODE_IP=10.17.$i.1 +        oct3=$i          break        fi      done -		#IP Zerlegen -		oct1=`echo $NODE_IP | awk -F . '{print $1}'` -		oct2=`echo $NODE_IP | awk -F . '{print $2}'`  -		oct3=`echo $NODE_IP | awk -F . '{print $3}'` -		oct4=`echo $NODE_IP | awk -F . '{print $4}'` +  		uci set network.mesh.ipaddr=$NODE_IP  		uci set network.mesh.proto=static  		uci set network.mesh.netmask=255.255.0.0 | 
