aboutsummaryrefslogtreecommitdiffstats
path: root/config/lcdproc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-06-15 16:57:51 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-06-15 16:57:51 -0400
commitf056939073d7edaf2d8e516c1335dcc0233c4973 (patch)
treef126f1988360bd8aa0afd219fa45c83cde18d7eb /config/lcdproc
parente3a3e479fde585e435a5b7e1b14b0c6f7aafb7e6 (diff)
downloadpfsense-packages-f056939073d7edaf2d8e516c1335dcc0233c4973.tar.gz
pfsense-packages-f056939073d7edaf2d8e516c1335dcc0233c4973.tar.bz2
pfsense-packages-f056939073d7edaf2d8e516c1335dcc0233c4973.zip
Use /usr/local/sbin/setkey if it exists
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)) {