diff options
Diffstat (limited to 'tn40xx.install')
-rw-r--r-- | tn40xx.install | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tn40xx.install b/tn40xx.install index 72cf4b6ffefb..24ca4ca6088b 100644 --- a/tn40xx.install +++ b/tn40xx.install @@ -1,14 +1,13 @@ - post_install() { - _extramodules=extramodules-4.4-lts - depmod $(cat /usr/lib/modules/${_extramodules}/version) + # get latest installed kernel version. not the running one. + _kernver="$(basename `ls -dlt /usr/lib/modules/[2-4]* | head -n 1 | cut -d '/' -f 2-`)" + depmod ${_kernver} } post_upgrade() { - post_install + post_install } post_remove() { - post_install + post_install } - |