summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-06 18:58:29 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-06 18:58:29 +0000
commita0c6633d5d42045d0d11fc25b4ac155f4a55ccd9 (patch)
tree2eb9a6bc3ee8f7f78c88ced89635507769dcb4b4 /etc
parent73c27364a473420203d4f582f0623262f88fcfb2 (diff)
downloadpfsense-a0c6633d5d42045d0d11fc25b4ac155f4a55ccd9.zip
pfsense-a0c6633d5d42045d0d11fc25b4ac155f4a55ccd9.tar.gz
Do not process nics twice.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.linkup6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup
index 36654fa..34d39c2 100755
--- a/etc/rc.linkup
+++ b/etc/rc.linkup
@@ -34,6 +34,8 @@
require_once("config.inc");
require_once("functions.inc");
+ $processed_nics = array();
+
if($g['booting'] == true) {
/* ignore all linkup events */
} else {
@@ -45,6 +47,10 @@
log_error("Arguments passed incorrectly to rc.linkup. '{$argspassed}' Exiting.");
exit;
}
+ /* do not process nics twice */
+ if (in_array($argv[$counter], $processed_nics))
+ continue;
+ $processed_nics[] = $argv[$counter];
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