# HG changeset patch # User Rob Landley # Date 1355079626 21600 # Node ID e78cb789519b68fab0c1ff1de76e35c386609eb1 # Parent e42487e3f7456111ae5e2e7e17aae70db7a4fc84 Toybox is now providing netcat in host-tools, change native-build to look for that. (I'd happily look for generic netcat and ftpd, but neither one has a standardized command line.) diff -r e42487e3f745 -r e78cb789519b sources/toys/native-build.sh --- a/sources/toys/native-build.sh Fri Nov 30 14:41:07 2012 -0600 +++ b/sources/toys/native-build.sh Sun Dec 09 13:00:26 2012 -0600 @@ -43,9 +43,9 @@ if [ -z "$FTP_PORT" ] then - if [ -z "$(which busybox)" ] + if [ -z "$(which toybox)" ] then - echo "Warning: can't find busybox, no ftp daemon launched." >&2 + echo "Warning: can't find toybox, no ftp daemon launched." >&2 else FTP_PORT=$(unique_port) @@ -56,8 +56,7 @@ # command line arguments, and this one's a known quantity.) mkdir -p upload - # Busybox needs -s 127.0.0.1 support here - busybox nc -p $FTP_PORT -lle busybox ftpd -w upload & + toybox nc -s 127.0.0.1 -p $FTP_PORT -L busybox ftpd -w upload & trap "kill $(jobs -p)" EXIT disown $(jobs -p)