diff options
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 | 
