summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
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 028ccda..36aa641 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -263,7 +263,7 @@ function system_routing_configure() {
}
}
if(($interfacegw <> "bgpd") && (is_ipaddr($gatewayip)))
- mwexec("/sbin/route add default " . escapeshellarg($gatewayip));
+ mwexec("/sbin/route add default " . escapeshellarg($gatewayip), true);
} else {
/* FIXME */
/* adding gateway for 1.2-style configs without the new
@@ -273,7 +273,7 @@ function system_routing_configure() {
*/
if (is_ipaddr($config['interfaces']['wan']['gateway'])) {
$gatewayip = $config['interfaces']['wan']['gateway'];
- mwexec("/sbin/route add default " . escapeshellarg($gatewayip));
+ mwexec("/sbin/route add default " . escapeshellarg($gatewayip), true);
}
}
}
OpenPOWER on IntegriCloud