From deb9ea44537c7aa29c0b2df0d1edfea46ab36100 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Wed, 9 Nov 2016 14:28:39 +0100 Subject: [PATCH] (WiiU) netlog scripts. --- wiiu/net_listen.sh | 14 ++++++++++++++ wiiu/net_send.sh | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100755 wiiu/net_listen.sh create mode 100755 wiiu/net_send.sh diff --git a/wiiu/net_listen.sh b/wiiu/net_listen.sh new file mode 100755 index 0000000000..167be1fa63 --- /dev/null +++ b/wiiu/net_listen.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -z $1 ] ; then + echo + echo "usage: $0 " + echo + exit 0 +fi + +interrupt_count=0 + +trap 'if [ $interrupt_count -eq 20 ]; then exit 0; else interrupt_count=$(($interrupt_count + 1)); fi' INT + +while true; do echo; echo ========= `date` =========; echo; netcat -p 4405 -l $1; done diff --git a/wiiu/net_send.sh b/wiiu/net_send.sh new file mode 100755 index 0000000000..f5f269d7d1 --- /dev/null +++ b/wiiu/net_send.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +if [$1 -eq ''] ; then + echo + echo "usage: $0 " + echo + exit 0 +fi + +export WIILOAD=tcp:$1 +rm $2.stripped -rf +powerpc-eabi-strip $2 -o $2.stripped +wiiload $2.stripped