Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- refresh_depmod()
- {
- echo "updating kernel modules..."
- depmod -a
- }
- # arg 1: the new package version
- post_install()
- {
- refresh_depmod
- }
- # arg 1: the new package version
- # arg 2: the old package version
- post_upgrade()
- {
- refresh_depmod
- }
- # arg 1: the old package version
- post_remove()
- {
- refresh_depmod
- }
- op=$1
- shift
- $op $*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement