Add SLACKCFVERSION as a config option

This commit is contained in:
Tristan Terpelle 2022-09-23 22:03:35 +02:00
parent b211490ee5
commit 7b52bfb8d5
2 changed files with 6 additions and 0 deletions

View file

@ -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}

View file

@ -64,6 +64,10 @@
# as needed
#SLACKKEY="Slackware Linux Project <security@slackware.com>"
# 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