diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:22 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:22 +0200 |
commit | d80c8552b60d499dbec7fb37e09ab8fc4145ce2d (patch) | |
tree | 34983c8c14a3316fbe7d34d564cbfebb73489ca3 /src/scripts/02defaults.sh | |
parent | 262e501463f4cc8bba690a1ef7cf0887cbfaa8cf (diff) | |
download | vyos-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.sh | 30 |
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 |