summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-modules2
-rw-r--r--autoscripts/postinst-xaw2
-rw-r--r--autoscripts/postrm-menu-method2
-rw-r--r--autoscripts/postrm-modules4
-rw-r--r--autoscripts/postrm-xaw2
5 files changed, 7 insertions, 5 deletions
diff --git a/autoscripts/postinst-modules b/autoscripts/postinst-modules
index a7e7c77d..b25a1c13 100644
--- a/autoscripts/postinst-modules
+++ b/autoscripts/postinst-modules
@@ -1,3 +1,3 @@
-if [ "$1" = "configure" ]; then
+if [ "$1" = "configure" -a -x /sbin/update-modules ]; then
update-modules
fi
diff --git a/autoscripts/postinst-xaw b/autoscripts/postinst-xaw
index 324058f8..035aa269 100644
--- a/autoscripts/postinst-xaw
+++ b/autoscripts/postinst-xaw
@@ -1,5 +1,5 @@
if [ "$1" = "configure" ]; then
- if test -x /usr/sbin/update-xaw-wrappers; then
+ if [ -x /usr/sbin/update-xaw-wrappers ]; then
/usr/sbin/update-xaw-wrappers
fi
for opts in #OPTS#; do
diff --git a/autoscripts/postrm-menu-method b/autoscripts/postrm-menu-method
index 3e63f2f4..2e0faed7 100644
--- a/autoscripts/postrm-menu-method
+++ b/autoscripts/postrm-menu-method
@@ -1,3 +1,3 @@
inst=/etc/menu-methods/#PACKAGE#
if [ "$1" = "remove" -a -f "$inst" ]; then chmod a-x $inst ; fi
-if [ -x /usr/bin/update-menus ] ; then update-menus; fi
+if [ -x /usr/bin/update-menus ]; then update-menus; fi
diff --git a/autoscripts/postrm-modules b/autoscripts/postrm-modules
index 7abe0c01..fdf249ef 100644
--- a/autoscripts/postrm-modules
+++ b/autoscripts/postrm-modules
@@ -1 +1,3 @@
-update-modules
+if [ -x /sbin/update-modules ]; then
+ update-modules
+fi
diff --git a/autoscripts/postrm-xaw b/autoscripts/postrm-xaw
index b8d718ea..14d13ebb 100644
--- a/autoscripts/postrm-xaw
+++ b/autoscripts/postrm-xaw
@@ -1,3 +1,3 @@
-if test -x /usr/sbin/update-xaw-wrappers; then
+if [ -x /usr/sbin/update-xaw-wrappers ]; then
/usr/sbin/update-xaw-wrappers
fi