From: Ben Warren Date: Mon, 19 Mar 2007 12:02:40 -0400 Subject: [U-Boot-Users] [PATCH] README.NetConsole In-Reply-To: <744267796.20070319092401@rambler.ru> References: <20070316201329.9A296352604@atlas.denx.de> <744267796.20070319092401@rambler.ru> Message-ID: <1174320161.5174.10.camel@saruman.qstreams.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Igor, On Mon, 2007-03-19 at 09:24 +0300, Igor Marnat wrote: > +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