diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-02-15 02:23:22 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-02-15 02:23:22 -0500 |
commit | 28d221995282061e3cecab8d0a9cd8333717aeba (patch) | |
tree | e2a645ab476389fa45553c44f7388c3ca869cbfc /etc | |
parent | acc1e9d096cb84cbdafbdc8c6e000c3748b01a76 (diff) | |
download | pfsense-28d221995282061e3cecab8d0a9cd8333717aeba.zip pfsense-28d221995282061e3cecab8d0a9cd8333717aeba.tar.gz |
Remove this while loop now. It never ends and runs the cpu usage up to 100% forever.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index e131df0..652d527 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1265,20 +1265,11 @@ function interface_configure($interface = "wan") { $realif = get_real_interface($interface); - if (!$g['booting']) { + if (!$g['booting']) { /* remove all IPv4 addresses */ while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " -alias", true) == 0); - interface_bring_down($interface); - - /* remove all IPv6 addresses */ - $str = <<<EOD - while i="`/sbin/ifconfig $realif | /usr/bin/grep inet6 | /usr/bin/grep -m 1 -v '%'`"; do - ifconfig $realif \$i delete - done -EOD; - mwexec("($str)"); - mwexec("/sbin/ifconfig " . escapeshellarg($wancfg['if']) . " down"); - } + interface_bring_down($interface); + } /* wireless configuration? */ if (is_array($wancfg['wireless'])) |