diff options
author | Cody A.W. Somerville <cody.somerville@canonical.com> | 2009-04-15 22:07:26 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:44 +0100 |
commit | a486d3e1ad9401dfff9c0f0a98784bf8dfce1da7 (patch) | |
tree | d33ff4435e3c201aca1e2e5d123d84e47dbc15ac /helpers/lh_source_disk | |
parent | 442429dd15495710656d798107cc7bb6019eabab (diff) | |
download | vyos-live-build-a486d3e1ad9401dfff9c0f0a98784bf8dfce1da7.tar.gz vyos-live-build-a486d3e1ad9401dfff9c0f0a98784bf8dfce1da7.zip |
Adding Ubuntu mode.
Diffstat (limited to 'helpers/lh_source_disk')
-rwxr-xr-x | helpers/lh_source_disk | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/helpers/lh_source_disk b/helpers/lh_source_disk index f7e412926..105fd6359 100755 --- a/helpers/lh_source_disk +++ b/helpers/lh_source_disk @@ -44,43 +44,49 @@ Create_lockfile .lock mkdir -p source/.disk +TITLE="Debian GNU/Linux" DISTRIBUTION="$(echo ${LH_DISTRIBUTION} | cut -b 1 | tr '[a-z]' '[A-Z]')" DISTRIBUTION="${DISTRIBUTION}$(echo ${LH_DISTRIBUTION} | cut -b 2-)" eval VERSION="$`echo RELEASE_${LH_DISTRIBUTION}`" case "${LH_MODE}" in debian) - STRING="Official Snapshot" + STRING="Official Snapshot ${ARCHITECTURE}" ;; debian-release) - STRING="Official" + STRING="Official ${ARCHITECTURE}" + ;; + + ubuntu) + TITLE="Ubuntu GNU/Linux" + STRING="Build ${ARCHITECTURE}" ;; *) - STRING="Snapshot" + STRING="Snapshot ${ARCHITECTURE}" ;; esac case "${LH_DEBIAN_INSTALLER}" in cdrom) - echo "Debian GNU/Linux ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/CD Source $(date +%Y%m%d-%H:%M)" > source/.disk/info + echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/CD Source $(date +%Y%m%d-%H:%M)" > source/.disk/info ;; enabled|netinst) - echo "Debian GNU/Linux ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/NETINST Source $(date +%Y%m%d-%H:%M)" > source/.disk/info + echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/NETINST Source $(date +%Y%m%d-%H:%M)" > source/.disk/info ;; live) - echo "Debian GNU/Linux ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/INSTALL Source $(date +%Y%m%d-%H:%M)" > source/.disk/info + echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/INSTALL Source $(date +%Y%m%d-%H:%M)" > source/.disk/info ;; businesscard) - echo "Debian GNU/Linux ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/BC Source $(date +%Y%m%d-%H:%M)" > source/.disk/info + echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/BC Source $(date +%Y%m%d-%H:%M)" > source/.disk/info ;; disabled) - echo "Debian GNU/Linux ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE Source $(date +%Y%m%d-%H:%M)" > source/.disk/info + echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE Source $(date +%Y%m%d-%H:%M)" > source/.disk/info ;; esac |