Added device nodes
authorDavid Schleef <ds@schleef.org>
Wed, 27 Jun 2001 22:11:02 +0000 (22:11 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 27 Jun 2001 22:11:02 +0000 (22:11 +0000)
debian/libcomedi0.postinst

index aac68193ef60479b3a93d32d216bb63e66fd109a..9f74fcb4b705401e90f57363b5a07c1c6ef92126 100644 (file)
@@ -4,5 +4,13 @@ if [ "$1" = "configure" ]; then
        /sbin/ldconfig
 fi
 
+# Policy says that the user should be asked before we do this.
+for i in 0 1 2 3
+do
+       mknod /dev/comedi$i c 98 $i
+       chown root.root /dev/comedi$i
+       chmod 666 /dev/comedi$i
+done
+
 #DEBHELPER#