summaryrefslogtreecommitdiff
path: root/release/INSTALL-GRUB-MBR
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-15 20:54:35 +0000
committerMiles Bader <miles@gnu.org>1996-07-15 20:54:35 +0000
commit9099bb1e81e03be4b6898ea620006901159dc841 (patch)
tree2c2acde53703cc2fce1940597afbe8aeffad4f76 /release/INSTALL-GRUB-MBR
parentd2238952701ad864c2dec5d3891ff6e13a920f4b (diff)
Only read first block of disk as mbr.
"in)" -> "in".
Diffstat (limited to 'release/INSTALL-GRUB-MBR')
-rw-r--r--release/INSTALL-GRUB-MBR6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/INSTALL-GRUB-MBR b/release/INSTALL-GRUB-MBR
index 1a5f694c..f308819a 100644
--- a/release/INSTALL-GRUB-MBR
+++ b/release/INSTALL-GRUB-MBR
@@ -9,13 +9,13 @@ if [ ! "$DEV" -o ! -w "$DEV" ]; then
exit 1
fi
-case "$DEV" in)
+case "$DEV" in
*r?d[0-9])
;;
*)
echo "The device $DEV doesn't seem to be a whole-disk raw device; continue? [n] "
read C
- case "$C" in)
+ case "$C" in
[Yy]*)
;;
*)
@@ -28,7 +28,7 @@ esac
cd /tmp
-dd if="$DEV" of=mbr \
+dd if="$DEV" of=mbr bs=512 count=1 \
&& cp /boot/grub/stage1_ffs stage1 \
&& dd if=mbr of=stage1 conv=notrunc bs=1 seek=446 skip=446 count=64 \
&& dd if=stage1 of="$DEV" bs=512 count=1