wok rev 19389

dropbear: busybox provides inetd.conf,append inetd.conf
author Richard Dunbar <mojo@slitaz.org>
date Wed Aug 24 17:25:12 2016 -0400 (2016-08-24)
parents 31d782e2fabc
children 7c66c894e9ba
files dropbear/receipt
line diff
     1.1 --- a/dropbear/receipt	Wed Aug 24 16:44:18 2016 +0300
     1.2 +++ b/dropbear/receipt	Wed Aug 24 17:25:12 2016 -0400
     1.3 @@ -83,7 +83,6 @@
     1.4  	ln -s sshx $fs/usr/bin/sshfbvnc
     1.5  	touch $fs/etc/dropbear/dropbear_dss_host_key \
     1.6  		$fs/etc/dropbear/dropbear_rsa_host_key \
     1.7 -		$fs/etc/inetd.conf
     1.8  
     1.9  	# Fix dropbear initscript perms
    1.10  	chown -R root.root $fs
    1.11 @@ -100,7 +99,7 @@
    1.12  /etc/dropbear/dropbear_rsa_host_key	/etc/ssh/ssh_host_rsa_key
    1.13  /etc/dropbear/dropbear_dss_host_key	/etc/ssh/ssh_host_dsa_key
    1.14  EOT
    1.15 -	grep -q ssh "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
    1.16 +	grep -q ssh "$1/etc/inetd.conf" || cat <<EOT >> "$1/etc/inetd.conf"
    1.17  #ssh	stream	tcp	nowait	root	dropbear	dropbear	-i -b /etc/dropbear/banner
    1.18  EOT
    1.19  	[ -n "$quiet" ] && return