blob: 18a7a54f7a0fcaa82e67e88fa61ea682e686a784 (
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
33
34
35
36
37
38
39
40
|
#!/bin/sh
set -e
MDEC=/usr/mdec
BOOT=/boot_monitor
ROOT=`printroot -r`
if [ ! -b "$ROOT" ]
then
echo root device $ROOT not found
exit 1
fi
echo -n "Install boot as $BOOT on current root? (y/N) "
read ans
if [ ! "$ans" = y ]
then
echo Aborting.
exit 1
fi
echo "Installing boot monitor into $BOOT."
cp $MDEC/boot_monitor $BOOT
disk=`echo "$ROOT" | sed 's/s[0-3]//'`
echo -n "Install bootxx_minixfs3 into $disk? (y/N) "
read ans
if [ ! "$ans" = y ]
then
echo Exiting...
sync
exit 0
fi
echo "Installing bootxx_minixfs3 into $disk."
installboot_nbsd "$disk" "$MDEC/bootxx_minixfs3"
sync
|