From: Ben Gras Date: Fri, 19 Dec 2008 12:52:45 +0000 (+0000) Subject: /boot/boot install helper script. X-Git-Tag: v3.1.4~163 X-Git-Url: http://zhaoyanbai.com/repos/man.dnssec-dsfromkey.html?a=commitdiff_plain;h=7fdc181d5f84b1c3841a7d07fab6f11b63e0b3da;p=minix.git /boot/boot install helper script. --- diff --git a/boot/updateboot.sh b/boot/updateboot.sh new file mode 100755 index 000000000..0a4132c54 --- /dev/null +++ b/boot/updateboot.sh @@ -0,0 +1,27 @@ +#!/bin/sh +set -e + +BOOT=/boot/boot +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 and patch into $ROOT? (y/N) " +read ans + +if [ ! "$ans" = y ] +then echo Aborting. + exit 1 +fi + +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