autoinst

scripts to make installation of custom debian easier and more automated
git clone git://deadbeef.fr/autoinst.git
Log | Files | Refs | README | LICENSE

commit 8eaa9e3d52bc81ef8986760974b7a3282fbe6a37
parent 2934929eed31e5826cdaba866827190db7c528ff
Author: Morel BĂ©renger <berenger.morel@neutralite.org>
Date:   Thu, 14 Nov 2019 16:34:14 +0100

added a template for dropbear

Diffstat:
Aetc/dropbear/run/dropbear.run | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/etc/dropbear/run/dropbear.run b/etc/dropbear/run/dropbear.run @@ -0,0 +1,13 @@ +#!/bin/sh + +. /etc/runit/common + +if test ! -f ${DROPBEAR_KEY:-"./dropbear_rsa_host_key"} +then + test -e ${DROPBEAR_KEY} && die "$DROPBEAR_KEY exists but is not a file" + mkdir -p $(dirname $DROPBEAR_KEY) + dropbearkey -t rsa -f $DROPBEAR_KEY +fi + +printf "Preparation done, starting %s.\n" $SVNAME +exec chpst -b sshd /usr/sbin/dropbear -F -E -r $DROPBEAR_KEY