summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2010-03-01 12:00:27 +0100
committerSeth Mos <seth.mos@xs4all.nl>2010-03-01 12:00:27 +0100
commit84d07e675f1c26c98cf459a8f6f7107d67a438f2 (patch)
tree28d933336ad3f7751af6732352d1ccbe3a4055b5 /etc
parentc6e1b0f5efa81ba7bef267551b7013916611049a (diff)
downloadpfsense-84d07e675f1c26c98cf459a8f6f7107d67a438f2.zip
pfsense-84d07e675f1c26c98cf459a8f6f7107d67a438f2.tar.gz
Mute route delete message, regenerate resolv.conf as this also corrects static routes to the DNS servers.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 88dcbe3..9a9598c 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -134,7 +134,7 @@ function system_resolvconf_generate($dynupdate = false) {
if(is_ipaddr($gatewayip)) {
/* dns server array starts at 0 */
$dnscountermo = $dnscounter - 1;
- mwexec("route delete -host {$syscfg['dnsserver'][$dnscountermo]}");
+ mwexec("route delete -host {$syscfg['dnsserver'][$dnscountermo]}", true);
mwexec("route add -host {$syscfg['dnsserver'][$dnscountermo]} {$gatewayip}");
}
}
OpenPOWER on IntegriCloud