aboutsummaryrefslogtreecommitdiff
path: root/mkmpiodev
blob: 9686eed7967fc07263af0e8c32bed2eea430bb4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"