diff options
author | salmoon <salmoon> | 2002-09-03 15:35:43 +0000 |
---|---|---|
committer | salmoon <salmoon> | 2002-09-03 15:35:43 +0000 |
commit | 2faacf76f737cf2ec1ebf67520191e206675b6d5 (patch) | |
tree | 5f98e84d27102ccae4f5afcc24d2d0a6c3975d94 | |
parent | 790984c0188a6f5cd8fd22f0da9a9a675d1b226b (diff) | |
download | mpiosh-2faacf76f737cf2ec1ebf67520191e206675b6d5.tar.gz mpiosh-2faacf76f737cf2ec1ebf67520191e206675b6d5.tar.bz2 mpiosh-2faacf76f737cf2ec1ebf67520191e206675b6d5.zip |
added script to create device file
-rwxr-xr-x | mkmpiodev | 19 |
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" + |