File bnc481626_ibm-prtm-patch_edac.diff of Package ibmrtpkgs

Index: ibmrtpkgs-2/ibm-prtm/ibm-prtm
===================================================================
--- ibmrtpkgs-2.orig/ibm-prtm/ibm-prtm
+++ ibmrtpkgs-2/ibm-prtm/ibm-prtm
@@ -49,13 +49,22 @@ start() {
 	fi
 
 	logger -s -t "$NAME" "BIOS Real-Time module loaded."
-	
+
+	#k8_edac gets in the way on some machines; remove it and use amd64_edac
+	if [ `lsmod | grep -c k8_edac ` -ne 0 ]; then
+		rmmod k8_edac && modprobe amd64_edac
+		if [ "$?" -ne "0" ]; then
+			logger -s -t "$NAME" "Please install amd64_edac module!"
+			exit 1;
+		fi
+	fi
+
 	for mod in ipmi_si ipmi_msghandler ipmi_devintf 
 	do
 		modprobe $mod
 		if [ "$?" -ne "0" ]; then
 			logger -s -t "$NAME" "Please install $mod module!"
-		exit 1;
+			exit 1;
 		fi
 	done