From 52228adb536028e701c23a964c9c55286d991c5b Mon Sep 17 00:00:00 2001 From: Roel Date: Fri, 18 Apr 2014 20:23:59 +0200 Subject: [PATCH] added extra config instructions + fixed logic --- README.md | 17 ++++++++++++++--- main.py | 5 +++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index eebb0b1..6e9cf1d 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ config wifi-iface 'wmesh' 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' @@ -123,9 +123,11 @@ config interface 'mesh' 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' @@ -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. `$ 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 ` \ No newline at end of file diff --git a/main.py b/main.py index b92a4a2..635f14b 100755 --- a/main.py +++ b/main.py @@ -16,13 +16,14 @@ class Meshenger: #os.system("echo 1 >> /proc/sys/net/ipv6/conf/br-lan/disable_ipv6") 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): os.mkdir(self.msg_dir) print 'Making message directory' + print 'Building own index for the first time\n' + self.build_index() + try: d = threading.Thread(target=self.discover) d.daemon = True