Last change
on this file since 3415 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
329 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | if [ "$#" -lt "1" ] ; then
|
---|
4 | echo "raw-MR <dev>" >> /dev/stderr
|
---|
5 | exit 1
|
---|
6 | fi
|
---|
7 | LogIt "Restoring MBR..." 2
|
---|
8 | if uname -a | grep -q FreeBSD; then
|
---|
9 | echo -e 'y\ny' | /mnt/RESTORING/sbin/fdisk -b /BOOTLOADER.MBR -B $1 >/dev/null 2>> $LOGFILE
|
---|
10 | else
|
---|
11 | dd if=/BOOTLOADER.MBR of=$1 bs=446 count=1 2>> $LOGFILE
|
---|
12 | fi
|
---|
13 | exit $?
|
---|
14 |
|
---|
15 |
|
---|
16 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.