diff options
Diffstat (limited to 'spl.install')
-rw-r--r-- | spl.install | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/spl.install b/spl.install index 1ce2c6571619..5b7c4cdf8bc3 100644 --- a/spl.install +++ b/spl.install @@ -1,17 +1,15 @@ post_install() { - check_initramfs + dkms install spl/${1%%[_-]*} } -post_upgrade() { - check_initramfs +pre_upgrade() { + pre_remove ${2%%[_-]*} } -check_initramfs() { - echo " >>> To build the module for the current kernel use this command: - # dkms install spl/0.6.4 -k _KERNEL_VERSION_HERE_ - or just boot to kernel you want to built and do - # dkms install spl/0.6.4 -k \$(uname -r) +post_upgrade() { + post_install ${1%%[_-]*} +} - >>> Always remember to install kernel headers! -" +pre_remove() { + dkms remove spl/${1%%[_-]*} --all } |