more stack for boot
[minix.git] / boot / updateboot.sh
blob0a4132c547e97cb597680ed7d968c535ef2a7078
1 #!/bin/sh
2 set -e
4 BOOT=/boot/boot
5 ROOT=`printroot -r`
7 if [ ! -b "$ROOT" ]
8 then echo root device $ROOT not found
9 exit 1
12 echo -n "Install boot as $BOOT on current root and patch into $ROOT? (y/N) "
13 read ans
15 if [ ! "$ans" = y ]
16 then echo Aborting.
17 exit 1
20 make install || true
22 echo Installing boot monitor into $BOOT.
23 cp boot $BOOT
25 echo Patching position of $BOOT into $ROOT.
26 installboot -d "$ROOT" /usr/mdec/bootblock $BOOT
27 sync