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
|
2005-04-03 21:31:40 +00:00
|
|
|
key=/etc/dropbear/dropbear_${type}_host_key
|
2005-04-03 06:35:36 +00:00
|
|
|
[ ! -f $key ] && {
|
|
|
|
# generate missing keys
|
2005-04-03 21:31:40 +00:00
|
|
|
mkdir -p /etc/dropbear
|
2005-04-03 06:35:36 +00:00
|
|
|
[ -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
|
|
|
|
2005-03-23 10:44:22 +00:00
|
|
|
/usr/sbin/dropbear
|