]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-modules
r1827: releasing version 5.0.9
[debhelper.git] / autoscripts / postinst-modules
index a7e7c77d37b064f8609e97124322a06fa09742be..11c206bc8cd8504f917d562cb332ee8303848f35 100644 (file)
@@ -1,3 +1,6 @@
 if [ "$1" = "configure" ]; then
-       update-modules
+       if [ -x "`which update-modules 2>/dev/null`" ]; then
+               update-modules >/dev/null || [ "$?" = 3 ]
+       fi
+       depmod -a || true
 fi