Ingo Weinhold efa13a3a74 Updated patch and notes. Also added the optional package description and
the post install script.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@25312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-05-04 13:35:41 +00:00

18 lines
402 B
Bash
Executable File

#!/bin/sh
# generate SSH host keys
hostKeyDir=/boot/home/config/etc
if [ ! -f "$hostKeyDir/ssh_host_key" ] ; then
ssh-keygen -t rsa1 -f "$hostKeyDir/ssh_host_key" -N ""
fi
if [ ! -f "$hostKeyDir/ssh_host_dsa_key" ] ; then
ssh-keygen -t dsa -f "$hostKeyDir/ssh_host_dsa_key" -N ""
fi
if [ ! -f "$hostKeyDir/ssh_host_rsa_key" ] ; then
ssh-keygen -t rsa -f "$hostKeyDir/ssh_host_rsa_key" -N ""
fi