diff options
author | Ermal <eri@pfsense.org> | 2013-06-17 07:43:58 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-06-17 07:43:58 +0000 |
commit | 59b9908920fa675cdbc754a124840f2508ebc6f9 (patch) | |
tree | 81374b4f4925d55799347af3ec6fee3e8ba26b4e | |
parent | 4cdf35a43378b335390ebe832277b5a8ddf6753b (diff) | |
download | pfsense-59b9908920fa675cdbc754a124840f2508ebc6f9.zip pfsense-59b9908920fa675cdbc754a124840f2508ebc6f9.tar.gz |
Provide full path to route binary
-rw-r--r-- | etc/inc/interfaces.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 380b072..cd8e205 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -942,10 +942,10 @@ function interface_gif_configure(&$gif, $gifkey = "") { file_put_contents("{$g['tmp_path']}/{$gifif}_routerv6", $gif['tunnel-remote-addr']); if (is_ipaddrv4($realifgw)) { - mwexec("route change -host {$gif['remote-addr']} {$realifgw}"); + mwexec("/sbin/route change -host {$gif['remote-addr']} {$realifgw}"); } if (is_ipaddrv6($realifgw)) { - mwexec("route change -host -inet6 {$gif['remote-addr']} {$realifgw}"); + mwexec("/sbin/route change -host -inet6 {$gif['remote-addr']} {$realifgw}"); } return $gifif; @@ -3401,7 +3401,7 @@ function interface_6to4_configure($interface = "wan", $wancfg){ $ip4gateway = get_interface_gateway($interface); if (is_ipaddrv4($ip4gateway)) - mwexec("route change -host 192.88.99.1 {$ip4gateway}"); + mwexec("/sbin/route change -host 192.88.99.1 {$ip4gateway}"); if (!$g['booting']) link_interface_to_track6($interface, "update"); |