summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-07-05 14:55:53 +0000
committerOlivier Blin <oblin@mandriva.com>2007-07-05 14:55:53 +0000
commitf170e593629ff1eed4761dc784a3a6bb5f07f2e7 (patch)
tree0d2ad1b226bac33c165e903ce2cee259a8ba654b
parent455a658df06e5a3c92f00ea54aaf4446d026683d (diff)
downloaddrakx-f170e593629ff1eed4761dc784a3a6bb5f07f2e7.tar
drakx-f170e593629ff1eed4761dc784a3a6bb5f07f2e7.tar.gz
drakx-f170e593629ff1eed4761dc784a3a6bb5f07f2e7.tar.bz2
drakx-f170e593629ff1eed4761dc784a3a6bb5f07f2e7.tar.xz
drakx-f170e593629ff1eed4761dc784a3a6bb5f07f2e7.zip
add source_version_variables() to get version-specific variables
-rw-r--r--rescue/Flash/scripts/rescue_common20
1 files changed, 20 insertions, 0 deletions
diff --git a/rescue/Flash/scripts/rescue_common b/rescue/Flash/scripts/rescue_common
index f8e657d72..b3fc7c8a8 100644
--- a/rescue/Flash/scripts/rescue_common
+++ b/rescue/Flash/scripts/rescue_common
@@ -9,6 +9,26 @@ function detect_version() {
version="2.0"
fi
usbroot_device=$_device
+ source_version_variables
+}
+
+function source_version_variables {
+ local _version
+ _version=$1
+ [ -z "$_version" ] && _version=$version
+ if [ "$_version" = "1.0" ]; then
+ label=MDVUSBROOT
+ boot_rel="/boot"
+ loopbacks_rel="/loopbacks"
+ elif [ "$_version" = "1.05" ]; then
+ label=MDVUSBROOT
+ boot_rel="/.boot"
+ loopbacks_rel="/.loopbacks"
+ elif [ "$_version" = "2.0" ]; then
+ label=MDV_FLASH
+ boot_rel="/.boot"
+ loopbacks_rel="/.loopbacks"
+ fi
}
function has_label() {