summaryrefslogtreecommitdiffstats
path: root/rescue/restore-image.sh
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-11 15:42:19 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-11 15:42:19 +0000
commit6a2f28243ea9f8c84e78771ab2fca88b3f904545 (patch)
tree981d48f91595ecff62be28e3a96f3ac7ecf03fc2 /rescue/restore-image.sh
parentb0481b1e1275b2a4d930791ec58b2cf56b2199e0 (diff)
downloaddrakx-6a2f28243ea9f8c84e78771ab2fca88b3f904545.tar
drakx-6a2f28243ea9f8c84e78771ab2fca88b3f904545.tar.gz
drakx-6a2f28243ea9f8c84e78771ab2fca88b3f904545.tar.bz2
drakx-6a2f28243ea9f8c84e78771ab2fca88b3f904545.tar.xz
drakx-6a2f28243ea9f8c84e78771ab2fca88b3f904545.zip
oops, restore device variable
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-xrescue/restore-image.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index 8a216ac8a..c6543430e 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -137,10 +137,10 @@ function detect_win32()
# get the last created windows partition information
set -f
- first_win32_part_dev=$(fdisk -l | grep "^/dev/" | grep -v ${inst_source_dev} | grep -e "FAT\|NTFS\|HPFS" | tail -1 | sed 's/ .*$//')
+ device=$(fdisk -l | grep "^/dev/" | grep -v ${inst_source_dev} | grep -e "FAT\|NTFS\|HPFS" | tail -1 | sed 's/ .*$//')
set +f
- if [ -z "${first_win32_part_dev}" ]; then
+ if [ -z "${device}" ]; then
exit
fi