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.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 63a0dc3..e231fd1 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -144,11 +144,13 @@ function system_resolvconf_generate($dynupdate = false) {
if($config['system']['dns1gwint']) {
$if = $config['system']['dns1gwint'];
$gw = $config['interfaces'][$if]['if'];
+ exec("route delete {$syscfg['dnsserver'][0]}");
exec("route add {$syscfg['dnsserver'][0]} -gw {$gw}");
}
if($config['system']['dns2gwint']) {
$if = $config['system']['dns2gwint'];
$gw = $config['interfaces'][$if]['if'];
+ exec("route delete {$syscfg['dnsserver'][1]}");
exec("route add {$syscfg['dnsserver'][1]} -gw {$gw}");
}
OpenPOWER on IntegriCloud