mirror of
https://github.com/rworkman/slackpkg
synced 2024-12-25 21:58:42 +01:00
Add SLACKCFVERSION as a config option
This commit is contained in:
parent
b211490ee5
commit
7b52bfb8d5
2 changed files with 6 additions and 0 deletions
|
@ -160,7 +160,9 @@ function system_setup() {
|
||||||
# ${CONF}/blacklist.
|
# ${CONF}/blacklist.
|
||||||
[ "$CMD" != update ] && mkregex_blacklist
|
[ "$CMD" != update ] && mkregex_blacklist
|
||||||
|
|
||||||
|
if [ -z "${SLACKCFVERSION}" ]; then
|
||||||
SLACKCFVERSION=$(grep "# v[0-9.]\+" $CONF/slackpkg.conf | cut -f2 -dv)
|
SLACKCFVERSION=$(grep "# v[0-9.]\+" $CONF/slackpkg.conf | cut -f2 -dv)
|
||||||
|
fi
|
||||||
CHECKSUMSFILE=${WORKDIR}/CHECKSUMS.md5
|
CHECKSUMSFILE=${WORKDIR}/CHECKSUMS.md5
|
||||||
KERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null)
|
KERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null)
|
||||||
DIALOG_MAXARGS=${DIALOG_MAXARGS:-19500}
|
DIALOG_MAXARGS=${DIALOG_MAXARGS:-19500}
|
||||||
|
|
|
@ -64,6 +64,10 @@
|
||||||
# as needed
|
# as needed
|
||||||
#SLACKKEY="Slackware Linux Project <security@slackware.com>"
|
#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:
|
# Downloaded files will be in the TEMP directory:
|
||||||
TEMP=/var/cache/packages
|
TEMP=/var/cache/packages
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue