1#!/bin/sh 2 3if [ "$1" = up ]; 4then 5 mknod /dev/$2 c $3 0 6elif [ "$1" = down ]; 7then 8 rm /dev/$2 9elif 10 [ "$1" = clean ]; 11then 12 rm -f /dev/$2*; 13fi 14