From d0dd27ba6c984b84db36dbf6a57b11281fc1f3cd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 3 Sep 2015 12:49:24 +0100 Subject: [PATCH] Index page --- src/freedombone-meshweb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/freedombone-meshweb b/src/freedombone-meshweb index 72928d2f..723879bf 100755 --- a/src/freedombone-meshweb +++ b/src/freedombone-meshweb @@ -272,6 +272,9 @@ if [ $existing_bttrack -lt "2" ]; then bttrack --port ${TRACKER_PORT} --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full --ipv6_enabled 0 & fi +ZERONET_INDEX=/home/$MY_USERNAME/mesh.html + +sleep 5 zeronetavahi existing_zeronet=$(ps aux | grep zeronet | wc -l) @@ -279,11 +282,10 @@ if [ $existing_zeronet -lt "2" ]; then python zeronet.py & fi -ZERONET_INDEX=/home/$MY_USERNAME/mesh.html if which xdg-open > /dev/null; then - xdg-open file://$ZERONET_INDEX + xdg-open $ZERONET_INDEX elif which gnome-open > /dev/null; then - gnome-open file://$ZERONET_INDEX + gnome-open $ZERONET_INDEX fi exit 0