summaryrefslogtreecommitdiff
path: root/security/openssh/pkg-plist
diff options
context:
space:
mode:
Diffstat (limited to 'security/openssh/pkg-plist')
-rw-r--r--security/openssh/pkg-plist1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/openssh/pkg-plist b/security/openssh/pkg-plist
index 5f2fb2c24945..4d10a5382c24 100644
--- a/security/openssh/pkg-plist
+++ b/security/openssh/pkg-plist
@@ -16,3 +16,4 @@ man/man1/ssh.1.gz
man/man8/sshd.8.gz
sbin/sshd
@exec if [ ! -f %D/etc/ssh_host_key ]; then echo ">> Generating a secret host key."; %D/bin/ssh-keygen -N "" -f %D/etc/ssh_host_key; fi
+@exec if [ ! -x %D/etc/rc.d/sshd.sh ]; then echo "#!/bin/sh" > %D/etc/rc.d/sshd.sh && exec echo "[ -x %D/sbin/sshd ] && exec %D/sbin/sshd" >> %D/etc/rc.d/sshd.sh && exec chmod 0555 %D/etc/rc.d/sshd.sh; fi