From: tripolar 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://207.154.207.93/?a=commitdiff_plain;h=95c0f3f1d4d404b7d5e75eae7b5f759cc5c78d8c;p=packages.git [packages]: don't exit the sshd init script every time a key was created git-svn-id: svn://svn.openwrt.org/openwrt/packages@31580 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/net/openssh/files/sshd.init b/net/openssh/files/sshd.init index b5dfcd07d..ecc44c39e 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