summaryrefslogtreecommitdiff
path: root/src/scripts/02defaults.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/02defaults.sh')
-rw-r--r--src/scripts/02defaults.sh30
1 files changed, 29 insertions, 1 deletions
diff --git a/src/scripts/02defaults.sh b/src/scripts/02defaults.sh
index 78831e7ce..6e54c137b 100644
--- a/src/scripts/02defaults.sh
+++ b/src/scripts/02defaults.sh
@@ -31,6 +31,7 @@ Defaults ()
*)
echo "E: image type wrong or not yet supported."
+ Usage 1
;;
esac
else
@@ -53,6 +54,33 @@ Defaults ()
if [ -z "${LIVE_DISTRIBUTION}" ]
then
LIVE_DISTRIBUTION="unstable"
+ else
+ case "${LIVE_DISTRIBUTION}" in
+ "${CODENAME_OLDSTABLE}")
+ LIVE_DISTRIBUTION="oldstable"
+ ;;
+
+ "${CODENAME_STABLE}")
+ LIVE_DISTRIBUTION="stable"
+ ;;
+
+ "${CODENAME_TESTING}")
+ LIVE_DISTRIBUTION="testing"
+ ;;
+
+ "${CODENAME_UNSTABLE}")
+ LIVE_DISTRIBUTION="unstable"
+ ;;
+
+ experimental)
+ LIVE_DISTRIBUTION="unstable"
+ LIVE_DISTRIBUTION_EXPERIMENTAL="yes"
+ ;;
+
+ *)
+ LIVE_DISTRIBUTION="unstable"
+ ;;
+ esac
fi
# Set bootstrap flavour
@@ -128,7 +156,7 @@ Defaults ()
*)
echo "FIXME: Architecture not yet supported."
- exit 1
+ Usage 1
;;
esac
fi