summarylogtreecommitdiffstats
path: root/depmod.install
diff options
context:
space:
mode:
Diffstat (limited to 'depmod.install')
-rw-r--r--depmod.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/depmod.install b/depmod.install
new file mode 100644
index 000000000000..a18ed546237d
--- /dev/null
+++ b/depmod.install
@@ -0,0 +1,14 @@
+post_upgrade() {
+ EXTRAMODULES="$(basename $(readlink -f /lib/modules/$(uname -r)/extramodules/))"
+ depmod "$(uname -r)"
+}
+
+post_install() {
+ post_upgrade
+}
+
+post_remove() {
+ post_upgrade
+}
+
+# vim:set ts=2 sw=2 et: