diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-02-11 15:42:19 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-02-11 15:42:19 +0000 |
commit | 6a2f28243ea9f8c84e78771ab2fca88b3f904545 (patch) | |
tree | 981d48f91595ecff62be28e3a96f3ac7ecf03fc2 /rescue | |
parent | b0481b1e1275b2a4d930791ec58b2cf56b2199e0 (diff) | |
download | drakx-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')
-rwxr-xr-x | rescue/restore-image.sh | 4 |
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 |