wok rev 1410

Fix: dropbeart, must delete empty key file before.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Sep 24 21:08:29 2008 +0200 (2008-09-24)
parents c33837889abb
children 033eccccd487
files dropbear/receipt dropbear/stuff/init.d/dropbear
line diff
     1.1 --- a/dropbear/receipt	Wed Sep 24 11:12:17 2008 +0000
     1.2 +++ b/dropbear/receipt	Wed Sep 24 21:08:29 2008 +0200
     1.3 @@ -42,8 +42,8 @@
     1.4  	mkdir -p $fs/etc
     1.5  	cp -a stuff/dropbear $fs/etc
     1.6  	cp -a stuff/init.d $fs/etc
     1.7 -	#touch   $fs/etc/dropbear/dropbear_dss_host_key \
     1.8 -	#	$fs/etc/dropbear/dropbear_rsa_host_key
     1.9 +	touch   $fs/etc/dropbear/dropbear_dss_host_key \
    1.10 +		$fs/etc/dropbear/dropbear_rsa_host_key
    1.11  	
    1.12  	# Fix dropbear initscript perms
    1.13  	chown -R root.root $fs
     2.1 --- a/dropbear/stuff/init.d/dropbear	Wed Sep 24 11:12:17 2008 +0000
     2.2 +++ b/dropbear/stuff/init.d/dropbear	Wed Sep 24 21:08:29 2008 +0200
     2.3 @@ -18,12 +18,18 @@
     2.4    start)
     2.5      # We need rsa and dss host key file to start dropbear.
     2.6      if [ ! -s /etc/dropbear/dropbear_rsa_host_key ] ; then
     2.7 -      echo "Generating $NAME rsa key... "
     2.8 -      dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
     2.9 +      echo -n "Generating $NAME rsa key... "
    2.10 +      # Need to delete key before creating it.
    2.11 +      rm -f /etc/dropbear/dropbear_rsa_host_key
    2.12 +      dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key > /dev/null 2>&1
    2.13 +      status
    2.14      fi
    2.15      if [ ! -s /etc/dropbear/dropbear_dss_host_key ] ; then
    2.16 -      echo "Generating $NAME dss key... "
    2.17 -      dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
    2.18 +      echo -n "Generating $NAME dss key... "
    2.19 +      # Need to delete key before creating it.
    2.20 +      rm -f /etc/dropbear/dropbear_dss_host_key
    2.21 +      dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key > /dev/null 2>&1
    2.22 +      status
    2.23      fi
    2.24      if [ -f $PIDFILE ] ; then
    2.25        echo "$NAME already running."