Use useradd and update-rc.d classes in the OpenSSH recipe
authorJulian Pidancet <julian.pidancet@gmail.com>
Fri, 7 Oct 2011 00:13:41 +0000 (01:13 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Oct 2011 09:00:08 +0000 (10:00 +0100)
commit5a597258db009220ec6cb66bdf556c3c05f3d6da
tree4c0f060d2ca2c372aad8ad85706a4da287f5f823
parent7f12ee8008111492f146c7161247bc74aed3e030
Use useradd and update-rc.d classes in the OpenSSH recipe

The current sshd postinst and postrm scripts in the OpenSSH make the
package dependant of the adduser/addgroup scripts which may not be
available on all systems.

This patch replaces the sshd postinst and postrm scripts with proper
usage of the useradd and update-rc.d classes.

This patch had been modified from the previous proposed version to
use useradd long options for more clarity.

(From OE-Core rev: 6b7f399d595ef58e759dab211f4ece155119a680)

Signed-off-by: Julian Pidancet <julian.pidancet@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/openssh/openssh_5.8p2.bb