diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-06 19:13:36 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-06 19:13:36 +0000 |
commit | 34d47cf510ed38c168c13dfd25b568d22a433c3f (patch) | |
tree | 89f5a2db672738d0c5624158c64406c2d4a5ec69 | |
parent | 283f659b12e7d7b958061d29cd2afd40efb77d88 (diff) | |
download | pfsense-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.
-rwxr-xr-x | etc/rc.linkup | 4 |
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 |