tags 408131 +patch +confirmed
thanks

  Hello,

  I also suffered this and I attach a patch that may solve the issue. The 
problem is that when the /dev/kqemu device node already exists, this scipts 
fails and exit with some error code.

  The patch considers the case that /dev/kqemu device node already exists and 
in this case just do nothing.
-- 
Raúl Sánchez Siles
--- kqemu-common.postinst.org	2007-01-26 12:42:55.000000000 +0100
+++ kqemu-common.postinst	2007-01-26 12:39:54.000000000 +0100
@@ -6,10 +6,14 @@ case "$1" in
 	configure)
 		echo -n "  * creating /dev/kqemu: "
 
-		mknod /dev/kqemu c 250 0
-		chmod 0666 /dev/kqemu
+		if [ -f "/dev/kqemu" ]; then
+			mknod /dev/kqemu c 250 0
+			chmod 0666 /dev/kqemu
+			echo "done."
+		else 
+			echo -n " Already exists. "
+		fi
 
-		echo "done."
 		;;
 
 	abort-upgrade|abort-remove|abort-deconfigure)

Attachment: pgpJTbReeQ3eu.pgp
Description: PGP signature

Reply via email to