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