From 8af6c46d7fd0ada439b1f4010b046cdbdd90bc56 Mon Sep 17 00:00:00 2001 From: gnhb Date: Sun, 13 Jun 2010 20:55:10 +0700 Subject: Remove extra code that isn't needed any more in interfaces.inc. creating pppoe reset file is now handled directly in interfaces_ppps_configure function. --- etc/inc/interfaces.inc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'etc') diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index a24909c..9e17d20 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -681,10 +681,6 @@ function interfaces_configure() { foreach($iflist as $if => $ifname) { $realif = $config['interfaces'][$if]['if']; - if(is_array($config['interfaces'][$if]['pppoe']) && isset($config['interfaces'][$if]['pppoe']['pppoe-reset-type'])) - setup_pppoe_reset_file($if, true); - else - setup_pppoe_reset_file($if, false); if (strstr($realif, "bridge")) $bridge_list[$if] = $ifname; else if (strstr($realif, "gre")) @@ -2281,11 +2277,8 @@ function interface_configure($interface = "wan", $reloadall = false) { interface_dhcp_configure($interface); break; case 'pppoe': - interface_ppps_configure($interface); - break; + case 'l2tp': case 'pptp': - interface_ppps_configure($interface); - break; case 'ppp': interface_ppps_configure($interface); break; -- cgit v1.1