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