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