. service tells you which device it couldn't stat
[minix3.git] / drivers / memory / ramdisk / proto.sh
blobcab7fc8417d18202dbae32693cbb9bef64d2eb3c
1 #!/bin/sh
2 PATH=/bin:/sbin:/usr/bin:/usr/sbin
3 sed -n '1,/@DEV/p' <proto | grep -v @DEV@
5 cd /dev
6 ls -aln | grep '^[bc]' | egrep -v ' (fd1|fd0p|tcp|eth|ip|udp|tty[pq]|pty)' | \
7 sed -e 's/^[bc]/& /' -e 's/rw-/6/g' -e 's/r--/4/g' \
8 -e 's/-w-/2/g' -e 's/---/0/g' | \
9 awk '{ printf "\t\t%s %s--%s %d %d %d %d \n", $11, $1, $2, $4, $5, $6, $7; }'
11 sed -n '/@DEV/,$p' <proto | grep -v @DEV@