summaryrefslogtreecommitdiff
path: root/src/scripts/02defaults.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:22 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:22 +0200
commitd80c8552b60d499dbec7fb37e09ab8fc4145ce2d (patch)
tree34983c8c14a3316fbe7d34d564cbfebb73489ca3 /src/scripts/02defaults.sh
parent262e501463f4cc8bba690a1ef7cf0887cbfaa8cf (diff)
downloadvyos-live-build-d80c8552b60d499dbec7fb37e09ab8fc4145ce2d.tar.gz
vyos-live-build-d80c8552b60d499dbec7fb37e09ab8fc4145ce2d.zip
Adding live-package 0.99.6-1.
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