summaryrefslogtreecommitdiff
path: root/helpers/lh_source_disk
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_source_disk')
-rwxr-xr-xhelpers/lh_source_disk49
1 files changed, 35 insertions, 14 deletions
diff --git a/helpers/lh_source_disk b/helpers/lh_source_disk
index e4b2d3d8d..f7e412926 100755
--- a/helpers/lh_source_disk
+++ b/helpers/lh_source_disk
@@ -44,24 +44,45 @@ Create_lockfile .lock
mkdir -p source/.disk
-ARCHITECTURE="$(echo ${LH_ARCHITECTURE} | sed -e 's| |/|g')"
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}`"
-if [ -d binary/pool/main/b/base-installer ]
-then
- if [ -d binary/pool/main/l/live-installer ]
- then
- TYPE="LIVE/INSTALL"
- fi
-
- TYPE="LIVE/NETINST"
-else
- TYPE="LIVE"
-fi
-
-echo "Debian GNU/Linux ${VERSION} \"${DISTRIBUTION}\" - Official ${ARCHITECTURE} ${TYPE} Source $(date +%Y%m%d-%H:%M)" > source/.disk/info
+case "${LH_MODE}" in
+ debian)
+ STRING="Official Snapshot"
+ ;;
+
+ debian-release)
+ STRING="Official"
+ ;;
+
+ *)
+ STRING="Snapshot"
+ ;;
+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
+ ;;
+
+ enabled|netinst)
+ echo "Debian GNU/Linux ${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
+ ;;
+
+ businesscard)
+ echo "Debian GNU/Linux ${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
+ ;;
+esac
# Creating stage file
Create_stagefile .stage/source_disk