init script fixes, fixed udev
[hdw-linux/hdw-linux.git] / packages / security / openssh / openssh.setup
1 setup_block()   {
2         useradd -u 1025 -c 'sshd server' sshd || true
3         echo "creating ssh host keys ..."
4         /usr/bin/ssh-keygen -t dsa -b 1024 \
5                 -f /etc/ssh/ssh_host_dsa_key -N ""
6         /usr/bin/ssh-keygen -t rsa -b 1024 \
7                 -f /etc/ssh/ssh_host_rsa_key -N ""
8         touch /var/log/lastlog
9         echo "done. "
10                 }
11
12 uninstall_block()       {
13         userdel sshd || true
14                         }