changeset 1567:e78cb789519b

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.)
author Rob Landley <rob@landley.net>
date Sun, 09 Dec 2012 13:00:26 -0600
parents e42487e3f745
children 193e92aab6d2
files sources/toys/native-build.sh
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)