aboutsummaryrefslogtreecommitdiffstats
path: root/config/lcdproc
diff options
context:
space:
mode:
Diffstat (limited to 'config/lcdproc')
-rw-r--r--config/lcdproc/lcdproc_client.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/lcdproc/lcdproc_client.php b/config/lcdproc/lcdproc_client.php
index b26767c3..e391f2ce 100644
--- a/config/lcdproc/lcdproc_client.php
+++ b/config/lcdproc/lcdproc_client.php
@@ -174,7 +174,10 @@
function get_ipsec_tunnel_sad() {
/* query SAD */
- $fd = @popen("/sbin/setkey -D", "r");
+ if(file_exists("/usr/local/sbin/setkey"))
+ $fd = @popen("/usr/local/sbin/setkey -D", "r");
+ else
+ $fd = @popen("/sbin/setkey -D", "r");
$sad = array();
if ($fd) {
while (!feof($fd)) {