diff options
author | Spyros Stathopoulos | 2016-01-07 12:07:10 +0200 |
---|---|---|
committer | Spyros Stathopoulos | 2016-01-07 12:07:10 +0200 |
commit | 3042aeae2f80b23101b750cbc7deb82ffad82948 (patch) | |
tree | 7f6b24585982bdf511cdaef1007b306dc4e7767d /linux-gpib.install | |
parent | fc824be0a5029063c656eca30954a866dee33724 (diff) | |
download | aur-3042aeae2f80b23101b750cbc7deb82ffad82948.tar.gz |
Better depmod handling
Diffstat (limited to 'linux-gpib.install')
-rw-r--r-- | linux-gpib.install | 11 |
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 } |