From 3a008591d3dd922966bc1a528ea45d743c16607e Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 11 Feb 2009 16:34:11 +0000 Subject: echo device without /dev --- rescue/restore-image.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'rescue') 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 } -- cgit v1.2.1