# arg 1: the new package version post_install() { depmod -a } # arg 1: the new package version # arg 2: the old package version post_upgrade() { post_install $1 } # arg 1: the old package version post_remove() { depmod -a } op=$1 shift $op $*