Files
ports/extra/virtualbox-modules/install
2019-05-15 17:28:46 +08:00

19 lines
321 B
Plaintext

# package install script
action=$1
newversion=$2
oldversion=$3
post_install() {
if [ -f /lib/modules/KERNELVERSION ]; then
kernver=$(cat /lib/modules/KERNELVERSION)
else
kernver=$(file /boot/vmlinuz-venom | cut -d ' ' -f9)
fi
depmod $kernver
}
case $action in
post-install|post-upgrade) post_install ;;
esac