diff options
author | egon0 <ms@resonar.de> | 2011-03-11 06:46:07 (GMT) |
---|---|---|
committer | egon0 <ms@resonar.de> | 2011-03-11 06:46:07 (GMT) |
commit | d910afd043dedbe18be277f5fb06499d87550c04 (patch) | |
tree | eff0770fe69838e6c502456a3017cfd9961d42b0 /files | |
parent | 311f677af534b8d4cd4d19102dd9b1bc5abc36f9 (diff) |
* stripped ip-octet-splitting cause octet 3 is already available
Diffstat (limited to 'files')
-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 |