1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# https://wiki.archlinux.org/index.php/Dynamic_Kernel_Module_Support post_install() { dkms install -m pt3_drv -v ${1%%-*} } pre_upgrade() { pre_remove ${2%%-*} } post_upgrade() { post_install ${1%%-*} } pre_remove() { dkms remove -m pt3_drv -v ${1%%-*} --all } # vim:set ts=2 sw=2 et: