diff options
Diffstat (limited to 'autoscripts/postrm-modules')
-rw-r--r-- | autoscripts/postrm-modules | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/autoscripts/postrm-modules b/autoscripts/postrm-modules index bcacb9f5..d710791d 100644 --- a/autoscripts/postrm-modules +++ b/autoscripts/postrm-modules @@ -1,4 +1,6 @@ if [ -x "`which update-modules 2>/dev/null`" ]; then update-modules >/dev/null || [ "$?" = 3 ] fi -depmod -a || true +if [ -e /boot/System.map-#KVERS# ]; then + depmod -a -F /boot/System.map-#KVERS# #KVERS# || true +fi |