diff --git a/files/core-functions.sh b/files/core-functions.sh index 56314e9..1634ba9 100644 --- a/files/core-functions.sh +++ b/files/core-functions.sh @@ -160,7 +160,9 @@ function system_setup() { # ${CONF}/blacklist. [ "$CMD" != update ] && mkregex_blacklist + if [ -z "${SLACKCFVERSION}" ]; then SLACKCFVERSION=$(grep "# v[0-9.]\+" $CONF/slackpkg.conf | cut -f2 -dv) + fi CHECKSUMSFILE=${WORKDIR}/CHECKSUMS.md5 KERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null) DIALOG_MAXARGS=${DIALOG_MAXARGS:-19500} diff --git a/files/slackpkg.conf.new b/files/slackpkg.conf.new index cbc845d..ec49f2e 100644 --- a/files/slackpkg.conf.new +++ b/files/slackpkg.conf.new @@ -64,6 +64,10 @@ # as needed #SLACKKEY="Slackware Linux Project " +# SLACKCFVERSION defines the Slackware version. If left commented, it +# will be parsed from the 4th line of thise unedited config file. +#SLACKCFVERSION=15.0 + # Downloaded files will be in the TEMP directory: TEMP=/var/cache/packages