mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
system/tpe-kmod: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
This commit is contained in:
parent
91d545c810
commit
6634bd06a5
1 changed files with 3 additions and 2 deletions
|
@ -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 ] && \
|
||||
|
|
Loading…
Reference in a new issue