]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postrm-modules
r1814: * Remove hardcoded pathc to update-modules and gconf-schemas in various
[debhelper.git] / autoscripts / postrm-modules
index 45d65beaf5e6bb92c3cc39871e0cfbd5c5fba606..35db87185e8cd18c67f5c270f1d90b14639839e2 100644 (file)
@@ -1,3 +1,3 @@
-if [ -x /sbin/update-modules ]; then
+if [ -x "`which update-modules 2>/dev/null`" ]; then
        update-modules >/dev/null || [ "$?" = 3 ]
 fi