source: MondoRescue/branches/2.2.2/mondo/src/restore-scripts/mondo/raw-MR

Last change on this file was 1315, checked in by Bruno Cornec, 17 years ago

Log files are now consistent: mondoarchive.log for mondoarchive (containing also mindi.log) and mondorestore.log for mondorestore (copied from /tmp (ram) to /var/log (disk) at the end of the restore)
One include has been created for each bianry containing only that declaration ofr the moment, but which will be extended to include all local definitions (ps_* e.g.)
Doc updated accordingly
LOGFILE in restore process is now passed in the environment and not duplicated anymore
LogIt is not redifined either
LOGFILE should be put in environment by mondoarchive for mindi's usage but that's a step left for later.

  • Property svn:keywords set to Id
  • Property svn:unix-mode set to 755
File size: 329 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>> $LOGFILE
10else
11 dd if=/BOOTLOADER.MBR of=$1 bs=446 count=1 2>> $LOGFILE
12fi
13exit $?
14
15
16
Note: See TracBrowser for help on using the repository browser.