dynamic executables on ramdisk support
[minix3.git] / drivers / ramdisk / proto.sh
blob630fcdc1edebe2492f5c366dcd59c9d8570e62b9
1 #!/bin/sh
3 set -e
5 PATH=/bin:/sbin:/usr/bin:/usr/sbin
6 PROTO=${1:-proto}
7 sed -n '1,/@ACPI/p' <${PROTO} | grep -v @ACPI@
8 if [ -e acpi ]
9 then
10 echo " acpi ---755 0 0 acpi"
12 sed -n '/@ACPI/,/@DEV/p' <${PROTO} | grep -v -e @ACPI@ -e @DEV@
14 cd /dev
15 ls -aln | grep '^[bc]' | egrep -v ' (fd1|fd0p|tcp|eth|ip|udp|tty[pq]|pty)' | grep -v 13, | \
16 sed -e 's/^[bc]/& /' -e 's/rw-/6/g' -e 's/r--/4/g' \
17 -e 's/-w-/2/g' -e 's/---/0/g' | \
18 awk '{ printf "\t\t%s %s--%s %d %d %d %d \n", $11, $1, $2, $4, $5, $6, $7; }'
20 sed -n '/@DEV/,$p' <${PROTO} | grep -v @DEV@
21 cat proto.common.etc
22 if [ -x /libexec/ld.elf_so ]
23 then cat proto.common.dynamic
25 echo '$'