minix/drivers/ramdisk/proto.sh

20 lines
389 B
Bash
Raw Normal View History

#!/bin/sh
2011-07-20 16:01:45 +02:00
set -e
PATH=/bin:/sbin:/usr/bin:/usr/sbin
PROTO=${1:-proto}
sed -n '1,/@ACPI/p' <${PROTO} | grep -v @ACPI@
if [ -e acpi ]
then
echo " acpi ---755 0 0 acpi"
fi
sed -n '/@ACPI/,/@DEV/p' <${PROTO} | grep -v -e @ACPI@ -e @DEV@
2012-06-15 16:13:12 +02:00
cat proto.dev
sed -n '/@DEV/,$p' <${PROTO} | grep -v @DEV@
cat proto.common.etc
if [ -x /libexec/ld.elf_so ]
then cat proto.common.dynamic
fi
echo '$'