summarylogtreecommitdiffstats
path: root/linux-gpib.install
diff options
context:
space:
mode:
authorSpyros Stathopoulos2016-01-07 12:07:10 +0200
committerSpyros Stathopoulos2016-01-07 12:07:10 +0200
commit3042aeae2f80b23101b750cbc7deb82ffad82948 (patch)
tree7f6b24585982bdf511cdaef1007b306dc4e7767d /linux-gpib.install
parentfc824be0a5029063c656eca30954a866dee33724 (diff)
downloadaur-3042aeae2f80b23101b750cbc7deb82ffad82948.tar.gz
Better depmod handling
Diffstat (limited to 'linux-gpib.install')
-rw-r--r--linux-gpib.install11
1 files changed, 8 insertions, 3 deletions
diff --git a/linux-gpib.install b/linux-gpib.install
index fbdcbac70d39..a7b3955a54eb 100644
--- a/linux-gpib.install
+++ b/linux-gpib.install
@@ -1,3 +1,8 @@
+_depmod() {
+ EXTRAMODULES=extramodules-4.3-ARCH
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
post_install() {
getent group gpib || groupadd -r gpib
@@ -8,15 +13,15 @@ post_install() {
===> For example:
===> # modprobe ni_usb_gpib
EOF
- depmod $(uname -r)
+ _depmod
}
post_upgrade() {
- post_install
+ _depmod
echo 'In order to use the new version, reload all gpib modules manually.'
}
post_remove() {
groupdel gpib >/dev/null 2>&1 || true
- depmod $(uname -r)
+ _depmod
}