source:
trunk/minix/drivers/memory/ramdisk/proto.sh@
10
Last change on this file since 10 was 9, checked in by , 14 years ago | |
---|---|
File size: 354 bytes |
Line | |
---|---|
1 | #!/bin/sh |
2 | sed -n '1,/@DEV/p' <proto | grep -v @DEV@ |
3 | ( |
4 | cd /dev |
5 | ls -aln | grep '^[bc]' | egrep -v ' (fd1|fd0p|tcp|eth|ip|udp|tty[pq]|pty)' | \ |
6 | sed -e 's/^[bc]/& /' -e 's/rw-/6/g' -e 's/r--/4/g' \ |
7 | -e 's/-w-/2/g' -e 's/---/0/g' | \ |
8 | awk '{ printf "\t\t%s %s--%s %d %d %d %d \n", $11, $1, $2, $4, $5, $6, $7; }' |
9 | ) |
10 | sed -n '/@DEV/,$p' <proto | grep -v @DEV@ |
Note:
See TracBrowser
for help on using the repository browser.