Imported sources from subversion.
This commit is contained in:
21
packages/dropbear/fs/etc/rc.d/dropbear
Normal file
21
packages/dropbear/fs/etc/rc.d/dropbear
Normal file
@@ -0,0 +1,21 @@
|
||||
start()
|
||||
{
|
||||
if [ -x /usr/bin/dropbearmulti ]; then
|
||||
if ! [ -f /etc/dropbear/dropbear_rsa_host_key ]; then
|
||||
mount -o remount,rw /
|
||||
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 /
|
||||
dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
|
||||
mount -o remount,ro /
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
echo ""
|
||||
}
|
Reference in New Issue
Block a user