From: Peter Wagner <​tripolar@gmx.at> Date: Fri, 4 May 2012 00:53:27 +0000 (+0000) Subject: [packages]: don't exit the sshd init script every time a key was created X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=39192a4d9f938d51833b94a1c466ba88c25a4931;p=openwrt%2Fsvn-archive%2Farchive.git [packages]: don't exit the sshd init script every time a key was created SVN-Revision: 31580 --- 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