init script fixes, fixed udev
[hdw-linux/hdw-linux.git] / packages / security / openssh / openssh.setup
index 603bbb1..50a9e5e 100644 (file)
@@ -1,5 +1,12 @@
 setup_block()  {
        useradd -u 1025 -c 'sshd server' sshd || true
+       echo "creating ssh host keys ..."
+       /usr/bin/ssh-keygen -t dsa -b 1024 \
+               -f /etc/ssh/ssh_host_dsa_key -N ""
+       /usr/bin/ssh-keygen -t rsa -b 1024 \
+               -f /etc/ssh/ssh_host_rsa_key -N ""
+       touch /var/log/lastlog
+       echo "done. "
                }
 
 uninstall_block()      {