From ef6450d5d368d12068341e4a7836c177dbf26e41 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Tue, 25 Jun 2013 09:43:59 +0200 Subject: [PATCH] run: fix noux_net_netcat for most x86_32 platforms native pistachio x86 is broken in general arm fix still pending Issue #782 --- ports/run/noux_net_netcat.run | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/ports/run/noux_net_netcat.run b/ports/run/noux_net_netcat.run index cdc5121ffc..5aabc86fb0 100644 --- a/ports/run/noux_net_netcat.run +++ b/ports/run/noux_net_netcat.run @@ -75,7 +75,8 @@ append_if [is_qemu_available] config { } -append_if [expr ![is_qemu_available]] config { +if {![is_qemu_available]} { +append config { @@ -90,13 +91,16 @@ append_if [expr ![is_qemu_available]] config { - - - - - + } +append_if $use_nic_driver config { + } +append_if $use_usb_driver config { + } +append config { + } +} append_if $use_nic_driver config { @@ -119,8 +123,8 @@ append_if $use_usb_driver config { - - + + } @@ -222,12 +226,12 @@ if {[is_qemu_available]} { exec telnet $serial_ip_addr 8888 > $noux_output_file & } -sleep 2 +sleep 4 puts "--- serial '$serial_ip_addr' noux '$noux_ip_addr'" exec echo -e "Hello Genode" | netcat $noux_ip_addr 5555 -sleep 2 +sleep 4 set output [exec cat $noux_output_file] puts "output:\n$output\n"