diff options
Diffstat (limited to 'rescue/Flash')
-rw-r--r-- | rescue/Flash/scripts/rescue_common | 20 |
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() { |