This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/dropbear/fs/etc/rc.d/dropbear

24 lines
585 B
Plaintext

start()
{
if [ -x /usr/bin/dropbearmulti ]; then
if ! [ -f /etc/dropbear/dropbear_rsa_host_key ]; then
mount -o remount,rw /
mkdir -p /etc/dropbear &&
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
mount -o remount,ro /
fi
if ! [ -f /etc/dropbear/dropbear_dss_host_key ]; then
mount -o remount,rw /
mkdir -p /etc/dropbear &&
dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
mount -o remount,ro /
fi
fi
}
stop()
{
echo ""
}