From 3283be5f06491c04f14a26c2701e3c2fc0eebb5a Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Wed, 25 Sep 2019 19:43:07 -0400 Subject: [PATCH] Display current Lokinet version. --- includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 7a78f9a..184bba9 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -345,6 +345,7 @@ function DisplayLokinetConfig() { exec('pidof lokinet | wc -l', $lokinetstatus); $rulestate = exec("ip rule show default | grep lokinet | awk {'print $5'}", $output); + $lokiversion = exec("dpkg -s lokinet | grep '^Version:'", $output); if ($lokinetstatus[0] == 0) { $status = '
Lokinet daemon is not running
'; @@ -370,7 +371,8 @@ function DisplayLokinetConfig()

-
+

+
The 3 buttons below must be armed (red) to connect to Lokinet. If there isn't a current lokinet.ini file found on the system the "Generate.ini" button will be green. The .ini file must be generated prior to connecting to Lokinet by pressing the button which will automatically write the required .ini file. Similarly the absense of a valid bootstrap will be indicated by a green "Bootstrap" button. Applying a bootstrap by pressing the apply button without submitting a valid URL in the textbox area will apply the original default bootstrap in place of one being provided. Stopping the daemon also exits Lokinet. To summarize, if necessary generate the .ini and bootstrap Lokinet then you are able to connect to Lokinet by starting the daemon and letting the network establish itself.