]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - tools/netconsole
5 echo "Usage: $0 <board IP> [board port]"
7 echo "If port is not specified, '6666' will be used"
16 while [ -n "$1" ] ; do
20 -*) usage
"Invalid option $1";;
29 if [ -z "${ip}" ] ||
[ -n "$3" ] ; then
30 usage
"Invalid number of arguments"
33 for nc
in netcat nc
; do
34 type ${nc} >/dev
/null
&& break
37 trap "stty icanon echo intr ^C" 0 2 3 5 10 13 15
38 echo "NOTE: the interrupt signal (normally ^C) has been remapped to ^T"
40 stty
-icanon -echo intr ^T
41 ${nc} -u -l -p ${port} < /dev
/null
&
42 exec ${nc} -u ${ip} ${port}