xbps-src: reserve "kernel_hooks_version" variable.

This variable can be used in templates to specify the kernel version
passed to the Vanilla kernel hooks in /etc/kernel.d/<target>.
This commit is contained in:
Juan RP
2011-07-09 23:07:50 +02:00
parent 962aa6595e
commit 1cf57eab23
3 changed files with 10 additions and 2 deletions

View File

@@ -76,6 +76,14 @@ UPDATE="\$4"
#
_EOF
#
# Handle kernel hooks.
#
if [ -n "${kernel_hooks_version}" ]; then
_add_trigger kernel
echo "export kernel_hooks_version=\"${kernel_hooks_version}\"" >> $tmpf
fi
#
# Handle DKMS modules.
#