X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autoscripts%2Fpostrm-modules;h=c2577dd272d7aefc1b86f4fa9462de4446b762c3;hb=e2a6d4cec4a7ee952cf6a7f250d80f1d75a38f95;hp=bcacb9f5a575a9c984478fa27887c9184e2e80c1;hpb=084815258f457f7a41934549b52a63ba34b759e1;p=debhelper.git diff --git a/autoscripts/postrm-modules b/autoscripts/postrm-modules index bcacb9f..c2577dd 100644 --- a/autoscripts/postrm-modules +++ b/autoscripts/postrm-modules @@ -1,4 +1,3 @@ -if [ -x "`which update-modules 2>/dev/null`" ]; then - update-modules >/dev/null || [ "$?" = 3 ] +if [ -e /boot/System.map-#KVERS# ]; then + depmod -a -F /boot/System.map-#KVERS# #KVERS# || true fi -depmod -a || true