source: trunk/minix/drivers/memory/ramdisk/proto.sh@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

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