summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-06-17 07:44:53 +0000
committerErmal <eri@pfsense.org>2013-06-17 07:44:53 +0000
commit12f77b03360180d175f717d182406fa37632f87e (patch)
tree2ed485dbfc62db318837c91aef31cb0498bd35c2 /etc/inc/system.inc
parent59b9908920fa675cdbc754a124840f2508ebc6f9 (diff)
downloadpfsense-12f77b03360180d175f717d182406fa37632f87e.zip
pfsense-12f77b03360180d175f717d182406fa37632f87e.tar.gz
Provide full path to route binary
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 07217f4..14cd09c 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -155,12 +155,12 @@ function system_resolvconf_generate($dynupdate = false) {
if (is_ipaddrv4($gatewayip)) {
/* dns server array starts at 0 */
$dnscountermo = $dnscounter - 1;
- mwexec("route change -host " . $syscfg['dnsserver'][$dnscountermo] . " {$gatewayip}");
+ mwexec("/sbin/route change -host " . $syscfg['dnsserver'][$dnscountermo] . " {$gatewayip}");
}
if (is_ipaddrv6($gatewayip)) {
/* dns server array starts at 0 */
$dnscountermo = $dnscounter - 1;
- mwexec("route change -host -inet6 " . $syscfg['dnsserver'][$dnscountermo] . " {$gatewayip}");
+ mwexec("/sbin/route change -host -inet6 " . $syscfg['dnsserver'][$dnscountermo] . " {$gatewayip}");
}
}
}
OpenPOWER on IntegriCloud