aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsalmoon <salmoon>2002-09-03 15:35:43 +0000
committersalmoon <salmoon>2002-09-03 15:35:43 +0000
commit2faacf76f737cf2ec1ebf67520191e206675b6d5 (patch)
tree5f98e84d27102ccae4f5afcc24d2d0a6c3975d94
parent790984c0188a6f5cd8fd22f0da9a9a675d1b226b (diff)
downloadmpiosh-2faacf76f737cf2ec1ebf67520191e206675b6d5.tar.gz
mpiosh-2faacf76f737cf2ec1ebf67520191e206675b6d5.tar.bz2
mpiosh-2faacf76f737cf2ec1ebf67520191e206675b6d5.zip
added script to create device file
-rwxr-xr-xmkmpiodev19
1 files changed, 19 insertions, 0 deletions
diff --git a/mkmpiodev b/mkmpiodev
new file mode 100755
index 0000000..9686eed
--- /dev/null
+++ b/mkmpiodev
@@ -0,0 +1,19 @@
+#!/bin/bash
+#------------------------------
+# Create device file for MPIO
+#------------------------------
+
+DEVFILE=/dev/usb/mpio
+MAJOR=180
+MINOR=70
+PERM=666
+OWNER=root.root
+
+if [ -a $DEVFILE ]; then
+ rm -f $DEVFILE
+fi
+echo -n "Creating $DEVFILE..."
+mknod -m $PERM $DEVFILE c $MAJOR $MINOR
+chown $OWNER $DEVFILE
+echo " done"
+