summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2009-01-16 14:56:17 +0000
committerSeth Mos <seth.mos@xs4all.nl>2009-01-16 14:56:17 +0000
commit4e7a28195f132ecf77d069710576e274cc889464 (patch)
tree55b487093ba8044d7e83fa69c206a3754bc309f4 /etc/inc/system.inc
parent4cc0d38a328a029d5eb541932ae859980cd8e182 (diff)
downloadpfsense-4e7a28195f132ecf77d069710576e274cc889464.zip
pfsense-4e7a28195f132ecf77d069710576e274cc889464.tar.gz
Mute messages from command when setting the default route.
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