summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-11-18 01:06:53 +0100
committerStephen Beaver <sbeaver@netgate.com>2015-11-18 07:55:38 -0500
commit9098719154388b85c6e0841223545e5c4ed19193 (patch)
tree61698ab3c17daeb75f93aedea229c1290fdc1938 /src
parent3459814a1aaef1283117a36d3a18775983049e26 (diff)
downloadpfsense-9098719154388b85c6e0841223545e5c4ed19193.zip
pfsense-9098719154388b85c6e0841223545e5c4ed19193.tar.gz
interfaces.inc - use full paths to executables
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/interfaces.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index ada837d..272f8de 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -1621,7 +1621,7 @@ function interface_ppps_configure($interface) {
interfaces_bring_up($port);
pfSense_ngctl_attach(".", $port);
/* Enable setautosrc to automatically change mac address if parent interface's changes */
- mwexec("ngctl msg {$port}: setautosrc 1");
+ mwexec("/usr/sbin/ngctl msg {$port}: setautosrc 1");
break;
case "pptp":
case "l2tp":
@@ -2005,8 +2005,8 @@ EOD;
/* we only support the 3gstats.php for huawei modems for now. Will add more later. */
/* We should be able to launch the right version for each modem */
/* We can also guess the mondev from the manufacturer */
- exec("usbconfig | egrep -ie '(huawei)'", $usbmodemoutput);
- mwexec("/bin/ps auxww|grep \"{$interface}\" |grep \"[3]gstats\" | awk '{print $2}' |xargs kill");
+ exec("/usr/sbin/usbconfig | /usr/bin/egrep -ie '(huawei)'", $usbmodemoutput);
+ mwexec("/bin/ps auxww | /usr/bin/grep \"{$interface}\" | /usr/bin/grep \"[3]gstats\" | /usr/bin/awk '{print $2}' | /usr/bin/xargs kill");
foreach ($ports as $port) {
if (preg_match("/huawei/i", implode("\n", $usbmodemoutput))) {
$mondev = substr(basename($port), 0, -1);
@@ -4760,7 +4760,7 @@ function find_virtual_ip_alias($ip, $bits = null) {
* find_number_of_created_carp_interfaces: return the number of carp interfaces
*/
function find_number_of_created_carp_interfaces() {
- return `/sbin/ifconfig | grep "carp:" | wc -l`;
+ return `/sbin/ifconfig | /usr/bin/grep "carp:" | /usr/bin/wc -l`;
}
/*
OpenPOWER on IntegriCloud