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