projects
/
openwrt-github
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b165d72f22a417a97627140e4c8e48c712c5c186
[openwrt-github/.git]
/
package
/
dropbear
/
files
/
S50dropbear
1
#!/bin/sh
2
3
for type in rsa dss; do {
4
# check for keys
5
key=/etc/dropbear/dropbear_${type}_host_key
6
[ ! -f $key ] && {
7
# generate missing keys
8
mkdir -p /etc/dropbear
9
[ -x /usr/bin/dropbearkey ] && {
10
/usr/bin/dropbearkey -t $type -f $key 2>&- >&- && exec $0 $*
11
} &
12
exit 0
13
}
14
}; done
15
16
umask 077
17
/usr/sbin/dropbear