wok-6.x rev 20154

dropbear, openssh: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 18 21:44:24 2017 +0100 (2017-12-18)
parents 943e0b9e503d
children 274ed4ad62a7
files dropbear/stuff/init.d/dropbear openssh/stuff/openssh
line diff
     1.1 --- a/dropbear/stuff/init.d/dropbear	Mon Dec 18 12:30:14 2017 +0100
     1.2 +++ b/dropbear/stuff/init.d/dropbear	Mon Dec 18 21:44:24 2017 +0100
     1.3 @@ -18,7 +18,7 @@
     1.4    start)
     1.5      # We need rsa and dss host key file to start dropbear.
     1.6      for type in rsa dss ecdsa ; do
     1.7 -	[ -f /etc/dropbear/dropbear_${type}_host_key ] && continue
     1.8 +	[ -s /etc/dropbear/dropbear_${type}_host_key ] && continue
     1.9  	action 'Generating Dropbear %s key... ' $type
    1.10  	# Need to delete key before creating it.
    1.11  	rm -f /etc/dropbear/dropbear_${type}_host_key
     2.1 --- a/openssh/stuff/openssh	Mon Dec 18 12:30:14 2017 +0100
     2.2 +++ b/openssh/stuff/openssh	Mon Dec 18 21:44:24 2017 +0100
     2.3 @@ -20,7 +20,7 @@
     2.4  	start)
     2.5  		# We need rsa and dsa host key file to start dropbear.
     2.6  		for type in rsa dsa ecdsa ; do
     2.7 -			[ -f /etc/ssh/ssh_host_${type}_key ] && continue
     2.8 +			[ -s /etc/ssh/ssh_host_${type}_key ] && continue
     2.9  			_ 'Generating OpenSSH %s key... ' $type
    2.10  			ssh-keygen -t $type -f /etc/ssh/ssh_host_${type}_key -C '' -N ''
    2.11  		done