summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-modules
diff options
context:
space:
mode:
authorjoey <joey>2005-11-08 21:02:47 +0000
committerjoey <joey>2005-11-08 21:02:47 +0000
commitca14a50b17f949a4a25740bdf129ec9e55b055b2 (patch)
treeda4ac84b09fc74964457843c79c88a6530b90f85 /autoscripts/postinst-modules
parent4d34011a9916b9d1e0c1f78b28fe1456b10f3951 (diff)
r1814: * Remove hardcoded pathc to update-modules and gconf-schemas in various
script fragments.
Diffstat (limited to 'autoscripts/postinst-modules')
-rw-r--r--autoscripts/postinst-modules2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoscripts/postinst-modules b/autoscripts/postinst-modules
index f2342da..8d2c4cb 100644
--- a/autoscripts/postinst-modules
+++ b/autoscripts/postinst-modules
@@ -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