aboutsummaryrefslogtreecommitdiff
path: root/mkmpiodev
diff options
context:
space:
mode:
Diffstat (limited to 'mkmpiodev')
-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"
+