From 6bfd9853333e73684e4f1ed4e7b1888bda5e6ea4 Mon Sep 17 00:00:00 2001 From: dennisdebel Date: Wed, 28 May 2014 12:13:57 +0200 Subject: [PATCH 1/3] Update README.md added init script howto --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index 85e0cb0..4bfff3b 100644 --- a/README.md +++ b/README.md @@ -276,6 +276,37 @@ Restart dnsmasq to apply the changes: Now all http requests will be directed to Meshenger! +### Run meshenger on boot + +Create a file in `$ /etc/init.d/` called meshenger and paste the script below: + +``` +#!/bin/sh /etc/rc.common +#meshenger startup script + +START=10 +STOP=15 + +start() { + echo starting Meshenger + python ~/meshenger/main.py & +} + +stop() { + killall python +} +``` + +Make the file executable + +`$ chmod a+x /etc/init.d/meshenger` + +Now you can start/stop meshenger as a service, to enable the meshenger as srevice on boot run + +`$ /etc/init.d/meshenger enable` + +To start/stop/disable replace 'enable' with start, stop or disable. + ### Installing meshenger From 5fe9e0b19bdb0fc55a5ecf01f77916ccbe5490c1 Mon Sep 17 00:00:00 2001 From: dennisdebel Date: Wed, 28 May 2014 12:35:39 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4bfff3b..df5e693 100644 --- a/README.md +++ b/README.md @@ -274,7 +274,7 @@ Restart dnsmasq to apply the changes: `$ /etc/init.d/dnsmasq restart` -Now all http requests will be directed to Meshenger! +Now all http requests will be directed to Meshenger! If it doesn't work, check your DNS settings of the client your're using (aka your computer, phone, fapfapfaplet). Make sure google's 8.8.8.8 is not there and set 192.168.2.1 as the dns server. ### Run meshenger on boot From 0d4efad1ae7aa27123a93c0b1d01d8cb8dd4f661 Mon Sep 17 00:00:00 2001 From: dennisdebel Date: Wed, 28 May 2014 12:51:12 +0200 Subject: [PATCH 3/3] cosmetic changes --- webapp.html | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/webapp.html b/webapp.html index 7179cfc..9aa4ac4 100644 --- a/webapp.html +++ b/webapp.html @@ -7,12 +7,40 @@ + + + + meshed up

message

- +

outbox