diff options
author | Colin Watson <cjwatson@debian.org> | 2003-12-30 14:40:16 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2003-12-30 14:40:16 +0000 |
commit | f53b418b143b195b76f7c6d6c9047925775f1976 (patch) | |
tree | f6a3f760d88b1406258da19cb344bc66ec70123d /debian/prerm | |
parent | ff0969355822b16870de0a1eb41525fe059de932 (diff) |
Use invoke-rc.d (if it exists) to run the init script.
Diffstat (limited to 'debian/prerm')
-rw-r--r-- | debian/prerm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/prerm b/debian/prerm index 8ed7e07ec..5c1aa1351 100644 --- a/debian/prerm +++ b/debian/prerm | |||
@@ -20,8 +20,12 @@ case "$1" in | |||
20 | update-alternatives --quiet --remove rsh /usr/bin/ssh | 20 | update-alternatives --quiet --remove rsh /usr/bin/ssh |
21 | update-alternatives --quiet --remove rlogin /usr/bin/slogin | 21 | update-alternatives --quiet --remove rlogin /usr/bin/slogin |
22 | update-alternatives --quiet --remove rcp /usr/bin/scp | 22 | update-alternatives --quiet --remove rcp /usr/bin/scp |
23 | if [ -e /etc/init.d/ssh ]; then | 23 | if [ -x /etc/init.d/ssh ]; then |
24 | /etc/init.d/ssh stop | 24 | if [ -x /usr/sbin/invoke-rc.d ]; then |
25 | invoke-rc.d ssh stop | ||
26 | else | ||
27 | /etc/init.d/ssh stop | ||
28 | fi | ||
25 | fi | 29 | fi |
26 | # install-info --quiet --remove /usr/info/ssh-askpass.info.gz | 30 | # install-info --quiet --remove /usr/info/ssh-askpass.info.gz |
27 | ;; | 31 | ;; |