summaryrefslogtreecommitdiff
path: root/autoscripts/postrm-modules
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postrm-modules')
-rw-r--r--autoscripts/postrm-modules4
1 files changed, 3 insertions, 1 deletions
diff --git a/autoscripts/postrm-modules b/autoscripts/postrm-modules
index bcacb9f..d710791 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