summarylogtreecommitdiffstats
path: root/tn40xx.install
diff options
context:
space:
mode:
authorIdo Rosen2015-06-22 07:46:23 -0400
committerIdo Rosen2015-06-22 07:46:23 -0400
commit951891d0da4198d9b3cf18117d7c01a138b4eaa4 (patch)
treeb180dc4a9f21a576c6f2f83a7f1d57771801a14a /tn40xx.install
parent92ab378ecd47e539bb54ccfc64545f9b7e793223 (diff)
downloadaur-951891d0da4198d9b3cf18117d7c01a138b4eaa4.tar.gz
Move depmod to install script.
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
+
+}