Project

General

Profile

« Previous | Next » 

Revision 855645a8

Added by Chris Buechler over 17 years ago

Remove accidentally added debug code

View differences:

etc/inc/interfaces.inc
782 782

  
783 783
function interfaces_wan_configure() {
784 784
	
785
	require_once("Timer.php");
786
	$timer = new Benchmark_Timer;
787

  
788
	$timer->start();
789
	
790 785
	global $config, $g, $bridges_total;
791 786

  
792 787
	$wancfg = $config['interfaces']['wan'];
793 788

  
794
$timer->setMarker('marker1');
795

  
796 789
	if(!$g['booting']) {
797 790
		mute_kernel_msgs();
798 791

  
......
801 794

  
802 795
		/* remove wanup file if it exists */
803 796
		unlink_if_exists("{$g['tmp_path']}/wanup");
804
$timer->setMarker('marker2');
805 797

  
806 798
		/* kill PPPoE client (mpd) */
807 799
		killbypid("{$g['varrun_path']}/mpd.pid");
808 800

  
809 801
		/* wait for processes to die */
810 802
		sleep(3);
811
$timer->setMarker('marker3');
812 803
		unlink_if_exists("{$g['varetc_path']}/dhclient_wan.conf");
813 804
		unlink_if_exists("{$g['varetc_path']}/mpd.conf");
814 805
		unlink_if_exists("{$g['varetc_path']}/mpd.links");
......
820 811
	while (mwexec("/sbin/ifconfig " . escapeshellarg($wancfg['if']) . " -alias") == 0);
821 812
	mwexec("/sbin/ifconfig " . escapeshellarg($wancfg['if']) . " down");
822 813

  
823
$timer->setMarker('marker4');
824

  
825 814
	/* wireless configuration? */
826 815
	if (is_array($wancfg['wireless']))
827 816
		interfaces_wireless_configure($wancfg['if'], $wancfg['wireless']);
......
845 834
		}
846 835
	}
847 836

  
848
$timer->setMarker('marker5');
849

  
850 837
	/* media */
851 838
	if ($wancfg['media'] || $wancfg['mediaopt']) {
852 839
		$cmd = "/sbin/ifconfig " . escapeshellarg($wancfg['if']);

Also available in: Unified diff