added extra config instructions + fixed logic
This commit is contained in:
parent
7e2c473c96
commit
52228adb53
17
README.md
17
README.md
@ -112,7 +112,7 @@ config wifi-iface 'wmesh'
|
|||||||
option bssid '66:66:66:66:66:66'
|
option bssid '66:66:66:66:66:66'
|
||||||
```
|
```
|
||||||
|
|
||||||
Next up is `$ vi etc/config/wireless` where we add this interface:
|
Next up is `$ vi etc/config/network` where we add this interface:
|
||||||
|
|
||||||
```
|
```
|
||||||
config interface 'mesh'
|
config interface 'mesh'
|
||||||
@ -123,9 +123,11 @@ config interface 'mesh'
|
|||||||
|
|
||||||
option proto 'none'
|
option proto 'none'
|
||||||
|
|
||||||
```
|
Install B.A.T.M.A.N and IP6 support.
|
||||||
|
|
||||||
Lastly we edit `$ /etc/config/batman-adv ` to tell it which interface to use.
|
`$ opkg install kmod-batman-adv kmod-ipv6`
|
||||||
|
|
||||||
|
Then edit `$ /etc/config/batman-adv ` to tell it which interface to use.
|
||||||
|
|
||||||
```
|
```
|
||||||
config mesh 'bat0'
|
config mesh 'bat0'
|
||||||
@ -145,3 +147,12 @@ If you have set this up properly on more than one node, the nodes should be able
|
|||||||
|
|
||||||
Make sure that you have the same version of batctl and openwrt on all nodes you plan to use.
|
Make sure that you have the same version of batctl and openwrt on all nodes you plan to use.
|
||||||
`$ uname -a && batctl -v ` to see the version information.
|
`$ uname -a && batctl -v ` to see the version information.
|
||||||
|
|
||||||
|
|
||||||
|
### Installing meshenger
|
||||||
|
|
||||||
|
Get the dependencies and clone the git
|
||||||
|
|
||||||
|
`$ opkg install python git `
|
||||||
|
|
||||||
|
`$ git clone git://github.com/jngrt/meshenger.git `
|
5
main.py
5
main.py
@ -16,13 +16,14 @@ class Meshenger:
|
|||||||
|
|
||||||
#os.system("echo 1 >> /proc/sys/net/ipv6/conf/br-lan/disable_ipv6")
|
#os.system("echo 1 >> /proc/sys/net/ipv6/conf/br-lan/disable_ipv6")
|
||||||
self.own_ip = self.get_ip_adress()
|
self.own_ip = self.get_ip_adress()
|
||||||
print 'Building own index for the first time\n'
|
|
||||||
self.build_index()
|
|
||||||
|
|
||||||
if not os.path.exists(self.msg_dir):
|
if not os.path.exists(self.msg_dir):
|
||||||
os.mkdir(self.msg_dir)
|
os.mkdir(self.msg_dir)
|
||||||
print 'Making message directory'
|
print 'Making message directory'
|
||||||
|
|
||||||
|
print 'Building own index for the first time\n'
|
||||||
|
self.build_index()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
d = threading.Thread(target=self.discover)
|
d = threading.Thread(target=self.discover)
|
||||||
d.daemon = True
|
d.daemon = True
|
||||||
|
Loading…
Reference in New Issue
Block a user