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');