From 39192a4d9f938d51833b94a1c466ba88c25a4931 Mon Sep 17 00:00:00 2001 From: Peter Wagner <​tripolar@gmx.at> Date: Fri, 4 May 2012 00:53:27 +0000 Subject: [PATCH] [packages]: don't exit the sshd init script every time a key was created SVN-Revision: 31580 --- net/openssh/files/sshd.init | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/openssh/files/sshd.init b/net/openssh/files/sshd.init index b5dfcd07d0..ecc44c39e4 100644 --- a/net/openssh/files/sshd.init +++ b/net/openssh/files/sshd.init @@ -13,9 +13,8 @@ start() { [ ! -f $key ] && { # generate missing keys [ -x /usr/bin/ssh-keygen ] && { - /usr/bin/ssh-keygen -N '' -t $type -f $key 2>&- >&- && exec /etc/rc.common "$initscript" start - } & - exit 0 + /usr/bin/ssh-keygen -N '' -t $type -f $key 2>&- >&- + } } }; done user_exists sshd 22 || user_add sshd 22 22 sshd /var/empty -- 2.30.2