From 59b9908920fa675cdbc754a124840f2508ebc6f9 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 17 Jun 2013 07:43:58 +0000 Subject: Provide full path to route binary --- etc/inc/interfaces.inc | 6 +++--- 1 file 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"); -- cgit v1.1