aboutsummaryrefslogtreecommitdiffstats
path: root/config/openbgpd
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-07-24 09:27:01 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-07-24 09:27:01 -0300
commit68f9d510e75cca320e0a456f9ff6a2aef3bb171f (patch)
tree0c8095c5f095f3a5d47f7d53a8faa15667420d15 /config/openbgpd
parentf9d5f68afea91c3c482e244faa6f2beabc4b4ade (diff)
downloadpfsense-packages-68f9d510e75cca320e0a456f9ff6a2aef3bb171f.tar.gz
pfsense-packages-68f9d510e75cca320e0a456f9ff6a2aef3bb171f.tar.bz2
pfsense-packages-68f9d510e75cca320e0a456f9ff6a2aef3bb171f.zip
Use fullpath
Diffstat (limited to 'config/openbgpd')
-rw-r--r--config/openbgpd/openbgpd_status.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php
index a5bbc31c..d712b9f1 100644
--- a/config/openbgpd/openbgpd_status.php
+++ b/config/openbgpd/openbgpd_status.php
@@ -32,14 +32,14 @@ require("guiconfig.inc");
$commands = array();
-defCmdT("summary", "OpenBGPD Summary", "bgpctl show summary");
-defCmdT("interfaces", "OpenBGPD Interfaces", "bgpctl show interfaces");
-defCmdT("routing", "OpenBGPD Routing", "bgpctl show rib | sed '1,4d'");
-defCmdT("forwarding", "OpenBGPD Forwarding", "bgpctl show fib");
-defCmdT("network", "OpenBGPD Network", "bgpctl show network");
-defCmdT("nexthops", "OpenBGPD Nexthops", "bgpctl show nexthop");
-defCmdT("ip", "OpenBGPD IP", "bgpctl show ip bgp");
-defCmdT("neighbors", "OpenBGPD Neighbors", "bgpctl show neighbor");
+defCmdT("summary", "OpenBGPD Summary", "/usr/local/sbin/bgpctl show summary");
+defCmdT("interfaces", "OpenBGPD Interfaces", "/usr/local/sbin/bgpctl show interfaces");
+defCmdT("routing", "OpenBGPD Routing", "/usr/local/sbin/bgpctl show rib | sed '1,4d'");
+defCmdT("forwarding", "OpenBGPD Forwarding", "/usr/local/sbin/bgpctl show fib");
+defCmdT("network", "OpenBGPD Network", "/usr/local/sbin/bgpctl show network");
+defCmdT("nexthops", "OpenBGPD Nexthops", "/usr/local/sbin/bgpctl show nexthop");
+defCmdT("ip", "OpenBGPD IP", "/usr/local/sbin/bgpctl show ip bgp");
+defCmdT("neighbors", "OpenBGPD Neighbors", "/usr/local/sbin/bgpctl show neighbor");
if (isset($_REQUEST['isAjax'])) {
if (isset($_REQUEST['cmd']) && isset($commands[$_REQUEST['cmd']]))
@@ -57,9 +57,9 @@ include("head.inc");
function doCmdT($command, $limit = "all", $filter = "") {
$grepline = "";
if (!empty($filter))
- $grepline = " | grep " . escapeshellarg(htmlspecialchars($filter));
+ $grepline = " | /usr/bin/grep " . escapeshellarg(htmlspecialchars($filter));
if (is_numeric($limit) && $limit > 0)
- $headline = " | head -n {$limit}";
+ $headline = " | /usr/bin/head -n {$limit}";
$fd = popen("{$command}{$grepline}{$headline} 2>&1", "r");
$ct = 0;