comparison sources/toys/native-build.sh @ 1218:fd67d5a442c9

Switch from toybox netcat to busybox netcat.
author Rob Landley <rob@landley.net>
date Sat, 21 Aug 2010 02:46:30 -0500
parents e81a9b8b3b93
children 82a4e3d3a5ff
comparison
equal deleted inserted replaced
1217:1a24dc2bb3cb 1218:fd67d5a442c9
53 # Fire off an ftp daemon, making sure it's killed when this script exits. 53 # Fire off an ftp daemon, making sure it's killed when this script exits.
54 # (We use the busybox version because no two ftp daemons have quite the same 54 # (We use the busybox version because no two ftp daemons have quite the same
55 # command line arguments, and this one's a known quantity.) 55 # command line arguments, and this one's a known quantity.)
56 56
57 mkdir -p upload 57 mkdir -p upload
58 # Replace toybox with busybox when busybox grows -L support. 58 # Busybox needs -s 127.0.0.1 support here
59 toybox nc -s 127.0.0.1 -p $FTP_PORT -L busybox ftpd -w upload & 59 busybox nc -p $FTP_PORT -lle busybox ftpd -w upload &
60 trap "kill $(jobs -p)" EXIT 60 trap "kill $(jobs -p)" EXIT
61 disown $(jobs -p) 61 disown $(jobs -p)
62 62
63 # QEMU's alias for host loopback 63 # QEMU's alias for host loopback
64 64