]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postrm-modules
r1929: * dh_installmodules: depmod -a is no longer run during boot, so if a module
[debhelper.git] / autoscripts / postrm-modules
index bcacb9f5a575a9c984478fa27887c9184e2e80c1..d710791da3ede828cd96bf20b51f0b6698bd4ba4 100644 (file)
@@ -1,4 +1,6 @@
 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