From 9c8237597e9f65c4dfca0d6e784afc504bbfafe1 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Fri, 26 Apr 2019 17:23:04 -0400 Subject: [PATCH] start daemon if lokinet connection requested without running daemon --- includes/functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 5b040db..73b4c99 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -631,7 +631,6 @@ function SaveTORAndVPNConfig() $output"; - sleep (3); ?>
Stopping Lokinet background daemon process. @@ -646,8 +645,13 @@ function SaveTORAndVPNConfig() Connecting to Lokinet.
$output"; + if ($lokinetstatus[0] == 0){ + $output = shell_exec('sudo /home/pi/loki-network/lokilaunch.sh start'); + echo "
$output
"; + } $output = shell_exec('sudo /home/pi/loki-network/lokilaunch.sh connect'); echo "
$output
"; $output = shell_exec('sudo /etc/init.d/dnsmasq start');