diff options
author | Miles Bader <miles@gnu.org> | 1996-07-15 20:54:35 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-07-15 20:54:35 +0000 |
commit | 9099bb1e81e03be4b6898ea620006901159dc841 (patch) | |
tree | 2c2acde53703cc2fce1940597afbe8aeffad4f76 | |
parent | d2238952701ad864c2dec5d3891ff6e13a920f4b (diff) |
Only read first block of disk as mbr.
"in)" -> "in".
-rw-r--r-- | release/INSTALL-GRUB-MBR | 6 |
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 |