File sysconfig-attr-in-convert_persistent_name_rules.bnc546575.diff of Package sysconfig

From 5debc7831a08174e499858949819b3ef96eccb10 Mon Sep 17 00:00:00 2001
From: mt <mt@bf393798-0adf-0310-9952-bd479070b6c1>
Date: Wed, 18 Nov 2009 19:12:54 +0000
Subject: [PATCH] Fixed typo in convert_persistent_name_rules script causing to generate
 persistent name rules on update, not matching MAC address (bnc#546575).

---
 scripts/convert_persistent_name_rules |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/convert_persistent_name_rules b/scripts/convert_persistent_name_rules
index 1c4fdaa..7ea3558 100644
--- a/scripts/convert_persistent_name_rules
+++ b/scripts/convert_persistent_name_rules
@@ -161,9 +161,9 @@ while read A B C D E F X; do
 	fi
 	
 	# the DRIVERS key is needed to not match bridges and VLAN sub-interfaces
-	match="DRIVERS==\"?*\", ATTRS{address}==\"$MAC_ADDR\""
+	match="DRIVERS==\"?*\", ATTR{address}==\"$MAC_ADDR\""
 	if [ $basename = "ath" -o $basename = "wlan" ]; then
-		match="$match, ATTRS{type}==\"1\"" # do not match the wifi* interfaces
+		match="$match, ATTR{type}==\"1\"" # do not match the wifi* interfaces
 	fi
 	
 	write_rule "$match" "$INTERFACE" "$COMMENT"
-- 
1.6.4.2
openSUSE Build Service is sponsored by