summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-modules
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-modules')
-rw-r--r--autoscripts/postinst-modules7
1 files changed, 5 insertions, 2 deletions
diff --git a/autoscripts/postinst-modules b/autoscripts/postinst-modules
index 8d2c4cbc..11c206bc 100644
--- a/autoscripts/postinst-modules
+++ b/autoscripts/postinst-modules
@@ -1,3 +1,6 @@
-if [ "$1" = "configure" ] && [ -x "`which update-modules 2>/dev/null`" ]; then
- update-modules >/dev/null || [ "$?" = 3 ]
+if [ "$1" = "configure" ]; then
+ if [ -x "`which update-modules 2>/dev/null`" ]; then
+ update-modules >/dev/null || [ "$?" = 3 ]
+ fi
+ depmod -a || true
fi