Last change
on this file since 3885 was 3542, checked in by Bruno Cornec, 9 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 |
|
---|
6 | if [ "$#" -lt "1" ] ; then
|
---|
7 | echo "mr-raw <dev>" >> /dev/stderr
|
---|
8 | exit 1
|
---|
9 | fi
|
---|
10 | LogIt "Restoring MBR..." 2
|
---|
11 | if uname -a | grep -q FreeBSD; then
|
---|
12 | echo -e 'y\ny' | /mnt/RESTORING/sbin/fdisk -b /BOOTLOADER.MBR -B $1 >/dev/null 2>> $LOGFILE
|
---|
13 | else
|
---|
14 | dd if=/BOOTLOADER.MBR of=$1 bs=446 count=1 2>> $LOGFILE
|
---|
15 | fi
|
---|
16 | exit $?
|
---|
17 |
|
---|
18 |
|
---|
19 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.