wok-tiny diff dropbear/receipt @ rev 86

Add lpd-config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 21 19:04:10 2012 +0200 (2012-08-21)
parents 326cb72ed4ae
children e2b369ee537b
line diff
     1.1 --- a/dropbear/receipt	Fri Dec 09 18:37:27 2011 +0100
     1.2 +++ b/dropbear/receipt	Tue Aug 21 19:04:10 2012 +0200
     1.3 @@ -58,13 +58,11 @@
     1.4  # Post message when installing.
     1.5  post_install()
     1.6  {
     1.7 -	cat >> $1/etc/daemons.conf <<EOT
     1.8 -
     1.9 -# Dropbear SSH server options.
    1.10 -DROPBEAR_OPTIONS="$DROPBEAR_OPTS"
    1.11 +	grep -q inetd $1/etc/rcS.conf ||
    1.12 +	sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf
    1.13 +	grep -q dropbear $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
    1.14 +ssh	stream	tcp	nowait	root	/usr/sbin/dropbear	/usr/sbin/dropbear -i $DROPBEAR_OPTS
    1.15  EOT
    1.16 -	grep -qs 'dropbear ' $1/etc/rcS.conf ||
    1.17 -	sed -i 's/^RUN_DAEMONS="/&dropbear /' $1/etc/rcS.conf
    1.18  	dos2unix <<EOT | uudecode - > $1/etc/dropbear/dropbear_dss_host_key
    1.19  $DSSKEY
    1.20  EOT