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