1 #!/bin/sh 2 # $NetBSD: mkbootinfo.sh,v 1.1 2008/01/23 23:09:43 garbled Exp $ 3 4 OS=$1 5 BPART=$2 6 OUT=$3 7 8 if [ -z "$OS" ]; then 9 OS="NetBSD/ofppc" 10 fi 11 12 if [ -z "$BPART" ]; then 13 BPART=3 14 fi 15 16 if [ -z "$OUT" ]; then 17 OUT="bootinfo.txt" 18 fi 19 20 echo "<chrp-boot>" > $OUT 21 echo "<description>${OS}</description>" >>$OUT 22 echo "<os-name>${OS}</os-name>" >>$OUT 23 echo "<boot-script>boot &device;:${BPART}</boot-script>" >>$OUT 24 if [ -f "./netbsd.chrp" ]; then 25 /bin/cat ./netbsd.chrp >>$OUT 26 else 27 /bin/cat /usr/mdec/netbsd.chrp >>$OUT 28 fi 29 echo "</chrp-boot>" >>$OUT 30