added openssh setup script
[hdw-linux/hdw-linux.git] / packages / security / openssh / openssh
index bee0458..bb751ad 100644 (file)
@@ -10,10 +10,7 @@ flist_pruned="${flist_pruned}|etc/shadow|etc/passwd|etc/group"
 
 pre_install()  {
        export LD=gcc
-       # add the sshd user
-       echo "adding user sshd ..."
-       [ -z "`cat $root/etc/passwd | grep sshd`" ] && useradd sshd
-       echo "done."
+       useradd -u 1025 -c 'sshd server' sshd || true
                }
 
 confopt="$confopt --with-md5-passwords --without-pam --with-tcp-wrappers \