post_install() {
mkdir -p /data/data/com.termux/files/usr/etc/dropbear
for a in rsa ecdsa ed25519; do
	KEYFILE=/data/data/com.termux/files/usr/etc/dropbear/dropbear_${a}_host_key
	test ! -f $KEYFILE && dropbearkey -t $a -f $KEYFILE
done

echo "You can enable dropbear to autostart"
echo "Run 'pkg i termux-services'"
echo "to install the ('runit') service manager"
echo "then using 'sv-enable dropbear'"
exit 0
}
