From 34d47cf510ed38c168c13dfd25b568d22a433c3f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 6 Feb 2007 19:13:36 +0000 Subject: Do not process the same events twice. A nic may be stopped and restarted but we do not want to start or stop twice. --- etc/rc.linkup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') 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 -- cgit v1.1