Difference between revisions of "Mesh/Relay setup"

77 bytes added ,  06:47, 24 December 2013
m
Line 206: Line 206:
Edit up_hook.sh to contain the following:
Edit up_hook.sh to contain the following:


#!/bin/sh
<pre>
#!/bin/sh
INTERFACE="$3"
 
INTERFACE="$3"
ifconfig $INTERFACE up
 
batctl if add $INTERFACE
ifconfig $INTERFACE up
ifup bat0
batctl if add $INTERFACE
 
if [ `cat /sys/class/net/bat0/operstate` != "down" ]; then
        ifup bat0
fi
</pre>


Now you're ready to run the broker.
Now you're ready to run the broker.