summaryrefslogtreecommitdiffstats
path: root/rescue/restore-image.sh
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-11 16:34:11 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-11 16:34:11 +0000
commit3a008591d3dd922966bc1a528ea45d743c16607e (patch)
treefada5c11eda57ea5b867c73fe5558150a7fb636f /rescue/restore-image.sh
parent15895b7c5a7fc11ffd38ce594aade206e64daa27 (diff)
downloaddrakx-3a008591d3dd922966bc1a528ea45d743c16607e.tar
drakx-3a008591d3dd922966bc1a528ea45d743c16607e.tar.gz
drakx-3a008591d3dd922966bc1a528ea45d743c16607e.tar.bz2
drakx-3a008591d3dd922966bc1a528ea45d743c16607e.tar.xz
drakx-3a008591d3dd922966bc1a528ea45d743c16607e.zip
echo device without /dev
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-xrescue/restore-image.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index 084cd97b3..19a177104 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -164,9 +164,7 @@ function detect_win32()
# our install takes half of 'left'
win32_part_new_size=$(($((${used}+${avail}))*2))
- disk=${device%[0-9]}
- number=$(echo ${device} | sed 's@/dev/...@@g')
- echo "${disk}${number}"
+ echo ${win32_part_dev} | sed 's@/dev/@@'
fi
}