Remove building with NOCRYPTO option
[minix.git] / minix / commands / updateboot / updateboot.sh
blob18a7a54f7a0fcaa82e67e88fa61ea682e686a784
1 #!/bin/sh
2 set -e
4 MDEC=/usr/mdec
5 BOOT=/boot_monitor
6 ROOT=`printroot -r`
8 if [ ! -b "$ROOT" ]
9 then
10 echo root device $ROOT not found
11 exit 1
14 echo -n "Install boot as $BOOT on current root? (y/N) "
15 read ans
17 if [ ! "$ans" = y ]
18 then
19 echo Aborting.
20 exit 1
23 echo "Installing boot monitor into $BOOT."
24 cp $MDEC/boot_monitor $BOOT
26 disk=`echo "$ROOT" | sed 's/s[0-3]//'`
27 echo -n "Install bootxx_minixfs3 into $disk? (y/N) "
28 read ans
30 if [ ! "$ans" = y ]
31 then
32 echo Exiting...
33 sync
34 exit 0
37 echo "Installing bootxx_minixfs3 into $disk."
38 installboot_nbsd "$disk" "$MDEC/bootxx_minixfs3"
40 sync