aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/makedev.sh
blob: 0e8d09b8756d45545a2864487ec87530ca0a1e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

dest="$1"

if test "$dest" = ""; then
	echo "usage: $0 <destdir>"
	exit 1
fi
if test ! -d "$dest"; then
	echo "$dest: no such directory"
	exit 1
fi

mknod	$dest/null	c 1 3
mknod	$dest/zero	c 1 5
mknod	$dest/full	c 1 7
mknod	$dest/random	c 1 8
mknod	$dest/urandom	c 1 9

mknod	$dest/tty	c 5 0
mknod	$dest/console	c 5 1