[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
This commit is contained in:
tripolar 2012-05-04 00:53:27 +00:00
parent 8d45ff5a03
commit 95c0f3f1d4

View File

@ -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