if [ -z "$1" ]; then
    exit 255
fi
driver=$1
mode=666
major=$(grep "$driver" /proc/devices | cut -f 1 -d ' ')
if [ -c /dev/$driver ]; then
    rm /dev/$driver
fi
if [ "$major" != "" ]; then
    mknod /dev/$driver c $major 0
    chmod $mode /dev/$driver
fi
