From 1f33258d1a687b64d7252fc144c2dd5530740272 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 23 Aug 2001 19:52:25 +0000 Subject: r487: * dh_movefiles: Typo, Closes: #106532 * Use -x to test for existance of init scripts, rather then -e since we'll be running them, Closes: #109692 * dh_clean: remove debian/*.debhelper. No need to name files specifically; any file matching that is a debhelper temp file. Closes: #106514, #85520 --- autoscripts/postinst-init | 2 +- autoscripts/postinst-init-norestart | 2 +- autoscripts/prerm-init | 2 +- autoscripts/prerm-init-norestart | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'autoscripts') diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init index 159b12d..051f774 100644 --- a/autoscripts/postinst-init +++ b/autoscripts/postinst-init @@ -1,4 +1,4 @@ -if [ -e "/etc/init.d/#SCRIPT#" ]; then +if [ -x "/etc/init.d/#SCRIPT#" ]; then update-rc.d #SCRIPT# #INITPARMS# >/dev/null /etc/init.d/#SCRIPT# start fi diff --git a/autoscripts/postinst-init-norestart b/autoscripts/postinst-init-norestart index 3445f14..4f1c63f 100644 --- a/autoscripts/postinst-init-norestart +++ b/autoscripts/postinst-init-norestart @@ -1,4 +1,4 @@ -if [ -e "/etc/init.d/#SCRIPT#" ]; then +if [ -x "/etc/init.d/#SCRIPT#" ]; then update-rc.d #SCRIPT# #INITPARMS# >/dev/null if [ "$1" = "configure" ]; then if [ -z "$2" -o "$2" = "" ]; then diff --git a/autoscripts/prerm-init b/autoscripts/prerm-init index 9ffa64b..9882c7c 100644 --- a/autoscripts/prerm-init +++ b/autoscripts/prerm-init @@ -1,3 +1,3 @@ -if [ -e "/etc/init.d/#SCRIPT#" ]; then +if [ -x "/etc/init.d/#SCRIPT#" ]; then /etc/init.d/#SCRIPT# stop fi diff --git a/autoscripts/prerm-init-norestart b/autoscripts/prerm-init-norestart index 47a49d4..b7e311d 100644 --- a/autoscripts/prerm-init-norestart +++ b/autoscripts/prerm-init-norestart @@ -1,3 +1,3 @@ -if [ -e "/etc/init.d/#SCRIPT#" -a "$1" = remove ]; then +if [ -x "/etc/init.d/#SCRIPT#" -a "$1" = remove ]; then /etc/init.d/#SCRIPT# stop fi -- cgit v1.2.1