summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-modules
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-modules')
-rw-r--r--autoscripts/postinst-modules4
1 files changed, 3 insertions, 1 deletions
diff --git a/autoscripts/postinst-modules b/autoscripts/postinst-modules
index 11c206bc..0460eaaf 100644
--- a/autoscripts/postinst-modules
+++ b/autoscripts/postinst-modules
@@ -2,5 +2,7 @@ if [ "$1" = "configure" ]; then
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
fi