#!/bin/sh
# $Id: sbc_grub_auto,v 1.2 2006/03/29 08:28:46 sesam Exp $
# Script to run grub to recreate the MBR
#
# Find boot partition if any
##bootp=`grep "^/dev/.*\ /boot" $1/etc/fstab | cut -d ' ' -f 1`
# find boot device
##a="ja"
##if [ x$bootp != x ] ; then
##   bootdev=`echo $bootp | cut -c1-8`
##else
##   bootdev=`grep "^/dev/.*\ /\ " $1/etc/fstab | cut -c1-8`
##fi

##if [ x$a == xja ] ; then
chroot /mnt/disk grub-install hd0
sync
##fi
