Last change
on this file since 3698 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
|
Rev | Line | |
---|
[1] | 1 | #!/bin/sh
|
---|
[3542] | 2 | #
|
---|
| 3 | # $Id: mr-raw 3542 2016-03-24 16:48:03Z bruno $
|
---|
| 4 | #
|
---|
[1] | 5 |
|
---|
| 6 | if [ "$#" -lt "1" ] ; then
|
---|
[3542] | 7 | echo "mr-raw <dev>" >> /dev/stderr
|
---|
[1] | 8 | exit 1
|
---|
| 9 | fi
|
---|
| 10 | LogIt "Restoring MBR..." 2
|
---|
| 11 | if uname -a | grep -q FreeBSD; then
|
---|
[1315] | 12 | echo -e 'y\ny' | /mnt/RESTORING/sbin/fdisk -b /BOOTLOADER.MBR -B $1 >/dev/null 2>> $LOGFILE
|
---|
[1] | 13 | else
|
---|
[1315] | 14 | dd if=/BOOTLOADER.MBR of=$1 bs=446 count=1 2>> $LOGFILE
|
---|
[1] | 15 | fi
|
---|
| 16 | exit $?
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.