source: MondoRescue/branches/3.2/mondo/src/restore-scripts/mondo/mr-raw@ 3542

Last change on this file since 3542 was 3542, checked in by Bruno Cornec, 8 years ago
  • Rename all mondorestore scripts with the mr- prefix and adapt callers
  • Place these scripts in /usr/bin on the restore media
  • Fix a mindi bug where these scripts were not copied anymore with previous modifications around removal of cd
  • Property svn:keywords set to Id
  • Property svn:unix-mode set to 755
File size: 340 bytes
Line 
1#!/bin/sh
2#
3# $Id: mr-raw 3542 2016-03-24 16:48:03Z bruno $
4#
5
6if [ "$#" -lt "1" ] ; then
7 echo "mr-raw <dev>" >> /dev/stderr
8 exit 1
9fi
10LogIt "Restoring MBR..." 2
11if uname -a | grep -q FreeBSD; then
12 echo -e 'y\ny' | /mnt/RESTORING/sbin/fdisk -b /BOOTLOADER.MBR -B $1 >/dev/null 2>> $LOGFILE
13else
14 dd if=/BOOTLOADER.MBR of=$1 bs=446 count=1 2>> $LOGFILE
15fi
16exit $?
17
18
19
Note: See TracBrowser for help on using the repository browser.