]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-modules
r1827: releasing version 5.0.9
[debhelper.git] / autoscripts / postinst-modules
index 8d2c4cbc9da1b7695604c876debf122beb4bfd91..11c206bc8cd8504f917d562cb332ee8303848f35 100644 (file)
@@ -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