summaryrefslogtreecommitdiff
path: root/security/openssh
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-07-24 16:44:52 +0000
committerjlam <jlam@pkgsrc.org>2000-07-24 16:44:52 +0000
commitd6b3864d13e0d0a40dd820b82aef62d59def3340 (patch)
treedae7b5afaa8bab3ae23ce01c833a7661912e52dd /security/openssh
parenta624e619884a767111d10cb35abfe80c9710108d (diff)
downloadpkgsrc-d6b3864d13e0d0a40dd820b82aef62d59def3340.tar.gz
Make all the installed /usr/pkg/etc/rc.d/sshd.sh files match.
Also default to "start" command if run with no arguments.
Diffstat (limited to 'security/openssh')
-rw-r--r--security/openssh/files/sshd.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/security/openssh/files/sshd.sh b/security/openssh/files/sshd.sh
index 8d23e616475..e2fd46678eb 100644
--- a/security/openssh/files/sshd.sh
+++ b/security/openssh/files/sshd.sh
@@ -1,12 +1,14 @@
#!/bin/sh
#
-# $NetBSD: sshd.sh,v 1.2 2000/07/22 08:22:02 jlam Exp $
+# $NetBSD: sshd.sh,v 1.3 2000/07/24 16:44:52 jlam Exp $
#
name="sshd"
pidfile="/var/run/${name}.pid"
-case $1 in
+command=${1:-start}
+
+case ${command} in
start)
if [ ! -f @SSH_CONF_DIR@/ssh_host_key ]
then