File ppc64-diag.register.patch of Package ppc64-diag

---
 scripts/rtas_errd |    6 ++++++
 1 file changed, 6 insertions(+)

--- a/scripts/rtas_errd
+++ b/scripts/rtas_errd
@@ -44,6 +44,12 @@ fi
 
 case "$1" in
     start)
+	if test ! -d /var/cache/ppc64-diag.registered ; then
+		echo "registering ppc64-diag with system"
+		rm -f /var/cache/ppc64-diag.registered
+		mkdir -v /var/cache/ppc64-diag.registered
+		/etc/ppc64-diag/ppc64_diag_setup --register
+	fi
 	echo -n "Starting rtas_errd (platform error handling) daemon: "
 	if [[ $INSSERV -eq 1 ]]; then
 	    startproc $RE_BIN