mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 09:32:52 +00:00
(WIIU) revert changes to net_listen.sh
This commit is contained in:
parent
0236b52b03
commit
dc7c0a570f
@ -1,14 +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 5 ]; then exit 0; else interrupt_count=$(($interrupt_count + 1)); fi' INT
|
||||
trap 'if [ $interrupt_count -eq 20 ]; 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` =====
|
||||
while true; do echo; echo ========= `date` =========; echo; netcat -p 4405 -l $1; done
|
||||
|
Loading…
x
Reference in New Issue
Block a user