xbps-triggers: fix dkms targets target (v2).
This commit is contained in:
parent
f54652715f
commit
861598be05
2 changed files with 9 additions and 9 deletions
|
@ -20,14 +20,6 @@ UPDATE="$5"
|
|||
|
||||
export PATH="usr/bin:usr/sbin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
|
||||
if [ -x /usr/bin/dkms ]; then
|
||||
DKMS=/usr/bin/dkms
|
||||
elif [ -x /usr/sbin/dkms ]; then
|
||||
DKMS=/usr/sbin/dkms
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
remove_modules() {
|
||||
local _modver _kver
|
||||
|
||||
|
@ -109,6 +101,14 @@ targets)
|
|||
echo "post-install pre-remove"
|
||||
;;
|
||||
run)
|
||||
if [ -x /usr/bin/dkms ]; then
|
||||
DKMS=/usr/bin/dkms
|
||||
elif [ -x /usr/sbin/dkms ]; then
|
||||
DKMS=/usr/sbin/dkms
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
[ ! -x $DKMS -o -z "$dkms_modules" ] && exit 0
|
||||
|
||||
case "$TARGET" in
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'xbps-triggers'
|
||||
pkgname=xbps-triggers
|
||||
version=0.98
|
||||
version=0.99
|
||||
revision=1
|
||||
noarch=yes
|
||||
bootstrap=yes
|
||||
|
|
Loading…
Reference in a new issue