wok-tiny rev 82

fix p910nd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 20 00:33:31 2012 +0200 (2012-07-20)
parents dc79b649a4b9
children 998910ee725e
files ftp-config/receipt p910nd/receipt
line diff
     1.1 --- a/ftp-config/receipt	Thu Jul 19 23:54:55 2012 +0200
     1.2 +++ b/ftp-config/receipt	Fri Jul 20 00:33:31 2012 +0200
     1.3 @@ -28,6 +28,6 @@
     1.4  	grep -q inetd $1/etc/rcS.conf ||
     1.5  	sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf
     1.6  	cat >> $1/etc/inetd.conf <<EOT
     1.7 -21	stream	tcp	nowait	root	/usr/sbin/ftpd /usr/sbin/ftpd	$ROOT
     1.8 +21	stream	tcp	nowait	root	/usr/sbin/ftpd /usr/sbin/ftpd $ROOT
     1.9  EOT
    1.10  }
     2.1 --- a/p910nd/receipt	Thu Jul 19 23:54:55 2012 +0200
     2.2 +++ b/p910nd/receipt	Fri Jul 20 00:33:31 2012 +0200
     2.3 @@ -27,6 +27,7 @@
     2.4  	mkdir -p $fs/usr $fs/etc/init.d $fs/dev
     2.5  	cp -a $_pkg/usr/sbin $fs/usr
     2.6  	ln -s daemon $fs/etc/init.d/p910nd
     2.7 +	mkdir $fs/dev
     2.8  }
     2.9  
    2.10  post_install()
    2.11 @@ -40,7 +41,7 @@
    2.12  	echo "$DEVICES" | dos2unix | awk '{ if ($1 != "") printf \
    2.13  "%d	stream	tcp	nowait	root	%s %s -b -f %s\n", 9100 + n++, \
    2.14  "/usr/sbin/p910nd", "/usr/sbin/p910nd", $1 }' >> $1/etc/inetd.conf
    2.15 -	for dev in $DEVICES; do
    2.16 +	for dev in $(cat $DEVICES | dos2unix); do
    2.17  		mknod -m 660 $1$dev c 6 ${dev#*lp}
    2.18  	done
    2.19  }