summarylogtreecommitdiffstats
path: root/tn40xx.install
diff options
context:
space:
mode:
Diffstat (limited to 'tn40xx.install')
-rw-r--r--tn40xx.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/tn40xx.install b/tn40xx.install
new file mode 100644
index 00000000000..3980bc2ea25
--- /dev/null
+++ b/tn40xx.install
@@ -0,0 +1,20 @@
+
+post_install() {
+ for k in $(cd /lib/modules && /bin/ls); do
+ [ -d "/lib/modules/$k/kernel/" ] && depmod -a "$k"
+ done
+}
+
+post_upgrade() {
+ for k in $(cd /lib/modules && /bin/ls); do
+ [ -d "/lib/modules/$k/kernel/" ] && depmod -a "$k"
+ done
+}
+
+## arg 1: the old package version
+post_remove() {
+ for k in $(cd /lib/modules && /bin/ls | grep '^[0-9]'); do
+ [ -d "/lib/modules/$k/kernel/" ] && depmod -a "$k"
+ done
+
+}