X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autoscripts%2Fpostrm-modules;h=c2577dd272d7aefc1b86f4fa9462de4446b762c3;hb=fb8f18f4a98669c3b85e1bd7920fbabfc00b886e;hp=35db87185e8cd18c67f5c270f1d90b14639839e2;hpb=ca14a50b17f949a4a25740bdf129ec9e55b055b2;p=debhelper.git diff --git a/autoscripts/postrm-modules b/autoscripts/postrm-modules index 35db871..c2577dd 100644 --- a/autoscripts/postrm-modules +++ b/autoscripts/postrm-modules @@ -1,3 +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