[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [APPS] dropbear-0.39 (SSHD) for devboard_82 R1_91

On Thu, 18 Dec 2003, Friedrich Lobenstock wrote:

> Yes you are right, haven't thought of that.
> Of course you are free to extend the start script in some clever
> way:

No rocket science here ;-) This is just an idea.

Add something similar to this, to the start script, just before:

    14                  start_daemon $APP_PATH/sbin/$APP_NAME $OPTIONS

	[ -d $DBDIR ] || mkdir $DBDIR
	[ -f $DBDIR/dropbear_rsa_host_key ] ||
		dropbearkey -s 1024 -f $DBDIR/dropbear_rsa_host_key -t rsa
	[ -f $DBDIR/dropbear_dss_host_key ] ||
		dropbearkey -s 1024 -f $DBDIR/dropbear_dss_host_key -t dss

Of course, you'll need a dropbearkey on the target (dropbearmulti is
probably the cheepest way to achieve that).