blob: e1645cbabaf545885d9ed8e96aa90224bdf67e32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
if [ "x${1}" = 'xconfigure' ]; then
mkdir -p /etc/dropbear
for keytype in rsa dsa; do
if ! [ -f "/etc/dropbear/dropbear_${keytype}_host_key" ]; then
/usr/bin/dropbearkey -t "${keytype}" \
-f "/etc/dropbear/dropbear_${keytype}_host_key"
fi
done
/etc/init.d/dropbear enable
/etc/init.d/dropbear start
fi
|