#!/bin/sh set -e setglobal BOOT = '/boot/boot' setglobal 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