xbps-triggers: repair the dkms trigger.

This commit is contained in:
Juan RP 2015-06-03 22:34:34 +02:00
parent 884b35ad58
commit 212c61eff1
2 changed files with 11 additions and 7 deletions

View File

@ -18,12 +18,17 @@ PKGNAME="$3"
VERSION="$4"
UPDATE="$5"
DKMS=dkms
export PATH="usr/bin:usr/sbin:/usr/sbin:/usr/bin:/sbin:/bin"
remove_modules()
{
if [ -x bin/dkms ]; then
DKMS=bin/dkms
elif [ -x sbin/dkms ]; then
DKMS=sbin/dkms
else
exit 0
fi
remove_modules() {
local _modver _kver
# Remove the specified modules from all kernels.
@ -47,8 +52,7 @@ remove_modules()
done
}
add_modules()
{
add_modules() {
local rval=
# Add/build and install the specified modules for all kernels.

View File

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.96
version=0.97
revision=1
noarch=yes
bootstrap=yes