source: branches/2.0.8/mondo/mondo/restore-scripts/mondo/raw-MR @ 576

Last change on this file since 576 was 576, checked in by bcornec, 14 years ago

2.08 synced with stable as of r575
VERSION files updated

  • Property svn:keywords set to Id
  • Property svn:unix-mode set to 755
File size: 356 bytes
Line 
1#!/bin/sh
2
3if [ "$#" -lt "1" ] ; then
4    echo "raw-MR <dev>" >> /dev/stderr
5    exit 1
6fi
7LogIt "Restoring MBR..." 2
8if uname -a | grep -q FreeBSD; then
9    echo -e 'y\ny' | /mnt/RESTORING/sbin/fdisk -b /BOOTLOADER.MBR -B $1 >/dev/null 2>>/tmp/mondo-restore.log
10else
11    dd if=/BOOTLOADER.MBR of=$1 bs=446 count=1 2>> /tmp/mondo-restore.log
12fi
13exit $?
14
15
16
Note: See TracBrowser for help on using the repository browser.