diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-06-15 16:57:51 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-06-15 16:57:51 -0400 |
commit | f056939073d7edaf2d8e516c1335dcc0233c4973 (patch) | |
tree | f126f1988360bd8aa0afd219fa45c83cde18d7eb | |
parent | e3a3e479fde585e435a5b7e1b14b0c6f7aafb7e6 (diff) | |
download | pfsense-packages-f056939073d7edaf2d8e516c1335dcc0233c4973.tar.gz pfsense-packages-f056939073d7edaf2d8e516c1335dcc0233c4973.tar.bz2 pfsense-packages-f056939073d7edaf2d8e516c1335dcc0233c4973.zip |
Use /usr/local/sbin/setkey if it exists
-rw-r--r-- | config/lcdproc/lcdproc_client.php | 5 |
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)) { |