(WiiU) netlog scripts.

This commit is contained in:
aliaspider 2016-11-09 14:28:39 +01:00
parent dbd8a87ebb
commit deb9ea4453
2 changed files with 27 additions and 0 deletions

14
wiiu/net_listen.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
if [ -z $1 ] ; then
echo
echo "usage: $0 <WiiU-ip>"
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

13
wiiu/net_send.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
if [$1 -eq ''] ; then
echo
echo "usage: $0 <WiiU-ip> <elf>"
echo
exit 0
fi
export WIILOAD=tcp:$1
rm $2.stripped -rf
powerpc-eabi-strip $2 -o $2.stripped
wiiload $2.stripped