[U-Boot-Users] [PATCH] README.NetConsole

Ben Warren bwarren at qstreams.com
Mon Mar 19 17:02:40 CET 2007


Igor,

On Mon, 2007-03-19 at 09:24 +0300, Igor Marnat wrote:
<snip>
> +Be aware that in some distributives (Fedora Core 5 at least)
> +usage of nc has been changed and -l and -p options are considered
> +as mutually exclusive. If nc complains about options provided,
> +you can remove the -p option from the script. For example:
> +
> ++++++++++++++++++++++++++++++++++++++++++++
> +#! /bin/bash
> +
> +[ $# = 1 ] || { echo "Usage: $0 target_ip" >&2 ; exit 1 ; }
> +TARGET_IP=$1
> +
> +stty -icanon -echo intr ^T
> +nc -u -l 6666 < /dev/null &
> +nc -u ${TARGET_IP} 6666
> +stty icanon echo intr ^C
> ++++++++++++++++++++++++++++++++++++++++++++
> +
I don't think it's necessary to repeat the script in its entirety, since
the difference is only two characters.  The descriptive paragraph should
be enough.

Also, please submit with a 'Signed-off-by' line so it gets properly
tracked.

regards,
Ben





More information about the U-Boot mailing list