RS: invoke a shell explicitly for scripts
[minix.git] / drivers / ramdisk / proto.sh
blobdaa4eaa2985731f7ae4d2d1c5a83029153732c26
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@
13 cat proto.dev
14 sed -n '/@DEV/,$p' <${PROTO} | grep -v @DEV@
15 cat proto.common.etc
16 if [ -x /libexec/ld.elf_so ]
17 then cat proto.common.dynamic
19 echo '$'