diff options
author | Steve Langasek <steve.langasek@canonical.com> | 2011-01-17 01:52:12 -0800 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-01-25 16:00:19 -0400 |
commit | ab623d0bf8c2d59507f8e666253e316c76e2de90 (patch) | |
tree | 868bc80726dcf1f2d85c9b6893264d002698d757 /autoscripts/prerm-init-norestart | |
parent | aefd7af18432d793f49bfebf02a0b69e278a57c9 (diff) |
dh_installinit: never call init scripts directly, only through invoke-rc.d
Diffstat (limited to 'autoscripts/prerm-init-norestart')
-rw-r--r-- | autoscripts/prerm-init-norestart | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/autoscripts/prerm-init-norestart b/autoscripts/prerm-init-norestart index 9b631748..cacde6e3 100644 --- a/autoscripts/prerm-init-norestart +++ b/autoscripts/prerm-init-norestart @@ -1,7 +1,3 @@ if [ -x "/etc/init.d/#SCRIPT#" ] && [ "$1" = remove ]; then - if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then - invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER# - else - /etc/init.d/#SCRIPT# stop || #ERROR_HANDLER# - fi + invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER# fi |