system/tpe-kmod: Fix support for PRINT_PACKAGE_NAME

Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
This commit is contained in:
Heinz Wiesinger 2021-07-04 16:00:02 +02:00
parent 91d545c810
commit 6634bd06a5

View file

@ -30,6 +30,8 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
KERNVER=$(uname -r)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@ -42,7 +44,7 @@ fi
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
echo "$PRGNAM-${VERSION}_${KERNVER//-/_}-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
@ -77,7 +79,6 @@ then
if [ -z "${CONFIG_MODULE_SIG_HASH}" ]; then
eval $(zgrep "^CONFIG_MODULE_SIG_HASH=" /proc/config.gz)
fi
KERNVER=$(uname -r)
KERNSRC=${KERNSRC:-/lib/modules/${KERNVER}/source}
if [ -n "${CONFIG_MODULE_SIG_HASH}" ] && \
[ -f $KERNSRC/certs/signing_key.pem ] && \