2005-03-06 03:53:29 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2005-04-03 06:35:36 +00:00
|
|
|
for type in rsa dss; do {
|
|
|
|
# check for keys
|
|
|
|
key=/tmp/dropbear/dropbear_${type}_host_key
|
|
|
|
[ ! -f $key ] && {
|
|
|
|
# generate missing keys
|
|
|
|
mkdir -p /tmp/dropbear
|
|
|
|
[ -x /usr/bin/dropbearkey ] && {
|
|
|
|
/usr/bin/dropbearkey -t $type -f $key 2>&- >&- && exec $0 $*
|
|
|
|
} &
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
}; done
|
2005-03-06 03:53:29 +00:00
|
|
|
|
|
|
|
umask 077
|
2005-03-23 10:44:22 +00:00
|
|
|
/usr/sbin/dropbear
|