Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2017-07-13,master
commit 984191300661e17ab844f55d2263a58358d9964c Author: Sven Eckelmann sven@narfation.org Date: Sun Feb 14 00:18:48 2010 +0000
doc: open-mesh/Emulation: Allow > 9 instances
984191300661e17ab844f55d2263a58358d9964c open-mesh/Emulation.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/open-mesh/Emulation.textile b/open-mesh/Emulation.textile index f2ba27f9..5bcbc9b1 100644 --- a/open-mesh/Emulation.textile +++ b/open-mesh/Emulation.textile @@ -28,7 +28,7 @@ Furthermore, to allow automatic network device setup on boot i'm using the follo # kill default openwrt network config
NUM=$(ifconfig eth0| grep HWaddr | sed 's/:01[\n\ ]*$//' | sed 's/.*://'| sed 's/[\n\ ].*//') -ifconfig eth1 inet 192.168.${NUM}.2 up +ifconfig eth1 inet 192.168.$((0x$NUM)).2 up ifconfig br-lan down brctl delbr br-lan