summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-06 19:13:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-06 19:13:36 +0000
commit34d47cf510ed38c168c13dfd25b568d22a433c3f (patch)
tree89f5a2db672738d0c5624158c64406c2d4a5ec69 /etc/rc.linkup
parent283f659b12e7d7b958061d29cd2afd40efb77d88 (diff)
downloadpfsense-34d47cf510ed38c168c13dfd25b568d22a433c3f.zip
pfsense-34d47cf510ed38c168c13dfd25b568d22a433c3f.tar.gz
Do not process the same events twice. A nic may be stopped and restarted but we do not want to start or stop twice.
Diffstat (limited to 'etc/rc.linkup')
-rwxr-xr-xetc/rc.linkup4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup
index 34d39c2..7c69f71 100755
--- a/etc/rc.linkup
+++ b/etc/rc.linkup
@@ -48,9 +48,9 @@
exit;
}
/* do not process nics twice */
- if (in_array($argv[$counter], $processed_nics))
+ if (in_array($argv[$counter] . $argv[$counter+1], $processed_nics))
continue;
- $processed_nics[] = $argv[$counter];
+ $processed_nics[] = $argv[$counter] . $argv[$counter+1];
log_error("Processing {$argv[$counter]} - {$argv[$counter+1]}");
$friendly_interface = convert_real_interface_to_friendly_interface_name($argv[$counter]);
if($config['interfaces'][$friendly_interface]['ipaddr'] <> "dhcp" and
OpenPOWER on IntegriCloud