#!/bin/sh set -e setvar BOOT = '/boot/boot' setvar ROOT = $(printroot -r) if test ! -b $ROOT { echo root device $ROOT not found exit 1 } echo -n "Install boot as $BOOT on current root and patch into $ROOT? (y/N) " read ans if test ! $ans = y { echo Aborting. exit 1 } make install || true echo Installing boot monitor into $BOOT. cp boot $BOOT echo Patching position of $BOOT into $ROOT. installboot -d $ROOT /usr/mdec/bootblock $BOOT sync