summaryrefslogtreecommitdiff
path: root/etc/devmand/scripts/singlechar
blob: 9b8f0c08c807c9298380533ae9776bff74cb2867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ "$1" = up ];
then
	mknod /dev/$2 c $3 0
elif [ "$1" = down ];
then
	rm /dev/$2
elif 
	[ "$1" = clean ];
then
	rm -f /dev/$2*;
fi