Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / ofppc / stand / bootinfo / mkbootinfo.sh
blob5f2c35b66873f0c5b4e06f079cfcc8ac15a03aa6
1 #!/bin/sh
2 # $NetBSD$
4 OS=$1
5 BPART=$2
6 OUT=$3
7 BITMAP=$4
9 if [ -z "$OS" ]; then
10 OS="NetBSD/ofppc"
13 if [ -z "$BPART" ]; then
14 BPART=3
17 if [ -z "$OUT" ]; then
18 OUT="bootinfo.txt"
21 if [ -z "$BITMAP" ]; then
22 BITMAP="/usr/mdec/netbsd.chrp"
25 echo "<chrp-boot>" > $OUT
26 echo "<description>${OS}</description>" >>$OUT
27 echo "<os-name>${OS}</os-name>" >>$OUT
28 echo "<boot-script>boot &device;:${BPART}</boot-script>" >>$OUT
29 if [ -f "${BITMAP}" ]; then
30 /bin/cat ${BITMAP} >>$OUT
32 echo "</chrp-boot>" >>$OUT