meshweb stop command

This commit is contained in:
Bob Mottram 2015-09-30 12:16:39 +01:00
parent 8dd34fb43c
commit fcd28f5050
1 changed files with 5 additions and 0 deletions

View File

@ -295,6 +295,11 @@ function install_zeronet {
sed -i 's|fileserver_port = 0|fileserver_port = config.fileserver_port\n sys.modules["main"].file_server.port_opened = True|g' $ZERONET_DIR/src/Site/Site.py
}
if [[ "$1" == "stop" ]]; then
sudo batman stop
exit 0
fi
if [ -f /var/lib/batman ]; then
SERVER_INSTALLATION="yes"
fi