From 0c078c663312a31045b5a59196610e086bc8b4b2 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 7 Dec 1999 14:53:57 +1100 Subject: [PATCH] - sshd Redhat init script patch from Jim Knoble fixes compatability with 4.x and 5.x --- ChangeLog | 4 ++++ packages/redhat/sshd.init | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index dc16db037..ca28a39df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +19991207 + - sshd Redhat init script patch from Jim Knoble + fixes compatability with 4.x and 5.x + 19991204 - Small cleanup of PAM code in sshd.c - Merged OpenBSD CVS changes: diff --git a/packages/redhat/sshd.init b/packages/redhat/sshd.init index 5e9194899..a62866a2a 100755 --- a/packages/redhat/sshd.init +++ b/packages/redhat/sshd.init @@ -21,8 +21,16 @@ case "$1" in start) echo -n "Starting sshd: " if [ ! -f /var/run/sshd.pid ] ; then - /usr/sbin/sshd && success "sshd startup" || failure "sshd startup" - RETVAL=$? + case "`type -type success`" in + function) + /usr/sbin/sshd && success "sshd startup" || failure "sshd startup" + RETVAL=$? + ;; + *) + /usr/sbin/sshd && echo -n "sshd " + RETVAL=$? + ;; + esac fi echo ;;