diff options
author | joey <joey> | 1999-08-17 05:07:14 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 05:07:14 +0000 |
commit | 8d3f10b38de49099f20a7a0115dafdb318fbb2c0 (patch) | |
tree | e8dcfb52add19ad18449841823bf6a3d32218a2c /autoscripts | |
parent | aa3db12b0c4892841179e5b135de6568f8ebdd3c (diff) | |
download | debhelper-8d3f10b38de49099f20a7a0115dafdb318fbb2c0.tar.gz |
r157: Initial Import
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postinst-menu | 2 | ||||
-rw-r--r-- | autoscripts/postinst-menu-method | 2 | ||||
-rw-r--r-- | autoscripts/postinst-suid | 2 | ||||
-rw-r--r-- | autoscripts/postinst-wm | 2 | ||||
-rw-r--r-- | autoscripts/postrm-menu-method | 2 | ||||
-rw-r--r-- | autoscripts/postrm-suid | 2 | ||||
-rw-r--r-- | autoscripts/postrm-wm | 3 |
7 files changed, 8 insertions, 7 deletions
diff --git a/autoscripts/postinst-menu b/autoscripts/postinst-menu index a73a1692..49b2c5de 100644 --- a/autoscripts/postinst-menu +++ b/autoscripts/postinst-menu @@ -1 +1 @@ -if [ -x /usr/bin/update-menus ] ; then update-menus ; fi +if command -v update-menus >/dev/null 2>&1 ; then update-menus ; fi diff --git a/autoscripts/postinst-menu-method b/autoscripts/postinst-menu-method index 0ea7959b..7f7aaa96 100644 --- a/autoscripts/postinst-menu-method +++ b/autoscripts/postinst-menu-method @@ -1,5 +1,5 @@ inst=/etc/menu-methods/#PACKAGE# -if [ -x /usr/bin/update-menus -a -f $inst -a -x /usr/sbin/install-menu ] ; then +if command -v update-menus >/dev/null 2>&1 && [ -f $inst ] ; then chmod a+x $inst update-menus fi diff --git a/autoscripts/postinst-suid b/autoscripts/postinst-suid index 1294d313..de638efe 100644 --- a/autoscripts/postinst-suid +++ b/autoscripts/postinst-suid @@ -1,4 +1,4 @@ -if [ -e /etc/suid.conf -a -x /usr/sbin/suidregister ]; then +if command -v suidregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then suidregister -s #PACKAGE# /#FILE# #OWNER# #GROUP# #PERMS# else chown #OWNER#.#GROUP# /#FILE# diff --git a/autoscripts/postinst-wm b/autoscripts/postinst-wm index 94c052fc..925c7883 100644 --- a/autoscripts/postinst-wm +++ b/autoscripts/postinst-wm @@ -1,3 +1,3 @@ -if [ -x /usr/sbin/register-window-manager ] ; then +if command -v register-window-manager >/dev/null 2>&1; then register-window-manager --add #WM# fi diff --git a/autoscripts/postrm-menu-method b/autoscripts/postrm-menu-method index 3e63f2f4..0c2baae9 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 command -v update-menus >/dev/null 2>&1 ; then update-menus; fi diff --git a/autoscripts/postrm-suid b/autoscripts/postrm-suid index 9712d256..d4a76199 100644 --- a/autoscripts/postrm-suid +++ b/autoscripts/postrm-suid @@ -1,3 +1,3 @@ -if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then +if command -v suidunregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then suidunregister -s #PACKAGE# /#FILE# fi diff --git a/autoscripts/postrm-wm b/autoscripts/postrm-wm index 6dc9f5da..8345aa97 100644 --- a/autoscripts/postrm-wm +++ b/autoscripts/postrm-wm @@ -1,3 +1,4 @@ -if [ "$1" == "purge" -a -x /usr/sbin/register-window-manager ] ; then +if [ "$1" == "purge" ] && command -v register-window-manager >/dev/null 2>&1 +then register-window-manager --remove #WM# fi |