1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
6 for type in rsa dsa; do {
8 key=/etc/ssh/ssh_host_${type}_key
10 # generate missing keys
11 [ -x /usr/bin/ssh-keygen ] && {
12 /usr/bin/ssh-keygen -N '' -t $type -f $key 2>&- >&- && exec /etc/rc.common "$initscript" start