summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc15
1 files changed, 0 insertions, 15 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 9fb01fe..ff79abf 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -859,21 +859,6 @@ function interfaces_wan_configure() {
mwexec("/sbin/ifconfig " . escapeshellarg($wancfg['if']) . " " .
escapeshellarg($wancfg['ipaddr'] . "/" . $wancfg['subnet']));
}
- /* install default route */
- mwexec("/sbin/route delete default");
-
- $dont_add_route = false;
- /* if OLSRD is enabled, allow WAN to house DHCP. */
- if($config['installedpackages']['olsrd']) {
- foreach($config['installedpackages']['olsrd']['config'] as $olsrd) {
- if($olsrd['enabledyngw'] == "on") {
- $dont_add_route = true;
- }
- }
- }
-
- if($dont_add_route == false)
- mwexec("/sbin/route add default " . escapeshellarg($config['interfaces']['wan']['gateway']));
/* resync pf (done automatically for DHCP/PPPoE/PPTP) */
filter_configure();
OpenPOWER on IntegriCloud