]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-modules
r1929: * dh_installmodules: depmod -a is no longer run during boot, so if a module
[debhelper.git] / autoscripts / postinst-modules
index 11c206bc8cd8504f917d562cb332ee8303848f35..0460eaaff5c55149e9c2694124cdd1ec63c192c7 100644 (file)
@@ -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