RetroArch/wiiu/net_listen.sh
gblues 192f5875b9 Simplify, add logging, revert some of the changes
== DETAILS
The old code was crashing; I did a minimalized branch and the crash
went away, so I'm bringing that over here. Meaning I'll have to
redo some of the other work I'd put in, but oh well.

(now watch it start crashing again)

== TESTING
Can confirm it builds. Wii U is busy ATM so I can't test.
2017-12-30 04:40:23 +01:00

15 lines
276 B
Bash
Executable File

#!/bin/sh
interrupt_count=0
trap 'if [ $interrupt_count -eq 5 ]; then exit 0; else interrupt_count=$(($interrupt_count + 1)); fi' INT
echo ===== START: `date` =====
while true; do
netcat -p 4405 -l
if [ $? -ne 0 ]; then
break
fi
done
echo ===== END: `date` =====