summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauri Aarnio <Lauri.Aarnio@iki.fi>2009-03-31 19:22:33 +0300
committerLauri Leukkunen <lle@rahina.org>2009-03-31 19:31:28 +0300
commit624c8a41c64b5b8231c7cccfa7133160233b0476 (patch)
tree2a67c63192692ccee08fe8adc467f2c2bd701e98
parent86e0e47bc9706567c44f9ee48badd4f299bb7eed (diff)
Bugfig to sb2-upgrade-config: Check orig. mapping mode
- sb2-upgrade-config needs to work also if sb2-init was executed without the -m flag.
-rwxr-xr-xutils/sb2-upgrade-config6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/sb2-upgrade-config b/utils/sb2-upgrade-config
index 3c8fd28..ead76e2 100755
--- a/utils/sb2-upgrade-config
+++ b/utils/sb2-upgrade-config
@@ -114,6 +114,12 @@ fi
# read in the values that were used when sb2-init was executed:
. $SBOX_CONFIG_DIR/sb2-init-args
+if [ -z "$SB2INIT_MAPPING_MODE" ]; then
+ # Mapping mode was not specified when sb2-init was executed
+ # => use the default mode.
+ SB2INIT_MAPPING_MODE="simple"
+fi
+
#==============================================
# Finally: