summarylogtreecommitdiffstats
path: root/tn40xx.install
diff options
context:
space:
mode:
authorFlorian Knodt2016-04-12 14:25:02 +0200
committerFlorian Knodt2016-04-12 14:35:07 +0200
commit57a9a711d2bfca3144338a94e9a8c3b3016b2eda (patch)
treecfa9fcf960556f119784435ef4c9ec0c2ca2f1b3 /tn40xx.install
parent951891d0da4198d9b3cf18117d7c01a138b4eaa4 (diff)
downloadaur-57a9a711d2bfca3144338a94e9a8c3b3016b2eda.tar.gz
Bump 0.3.6.12.2, port to extramodules
Diffstat (limited to 'tn40xx.install')
-rw-r--r--tn40xx.install16
1 files changed, 5 insertions, 11 deletions
diff --git a/tn40xx.install b/tn40xx.install
index 3980bc2ea25..9ba194a7643 100644
--- a/tn40xx.install
+++ b/tn40xx.install
@@ -1,20 +1,14 @@
post_install() {
- for k in $(cd /lib/modules && /bin/ls); do
- [ -d "/lib/modules/$k/kernel/" ] && depmod -a "$k"
- done
+ _extramodules=extramodules-4.1-lts
+ depmod $(cat /usr/lib/modules/${_extramodules}/version)
}
post_upgrade() {
- for k in $(cd /lib/modules && /bin/ls); do
- [ -d "/lib/modules/$k/kernel/" ] && depmod -a "$k"
- done
+ post_install
}
-## 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
-
+ post_install
}
+