diff options
Diffstat (limited to 'zfs.install')
-rw-r--r-- | zfs.install | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/zfs.install b/zfs.install index 37c0f534d90b..5307ea86ee8b 100644 --- a/zfs.install +++ b/zfs.install @@ -1,17 +1,15 @@ post_install() { - check_initramfs + dkms install zfs/${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 zfs/0.6.4 -k _KERNEL_VERSION_HERE_ - or just boot to kernel you want to built and do - # dkms install zfs/0.6.4 -k \$(uname -r) +post_upgrade() { + post_install ${1%%[-_]*} +} - >>> Always remember to install kernel headers! -" +pre_remove() { + dkms remove zfs/${1%%[-_]*} --all } |