11 lines
198 B
Bash
Executable File
11 lines
198 B
Bash
Executable File
#!/bin/sh
|
|
|
|
while true; do
|
|
date
|
|
natpmpc -a 1 0 udp 60 -g 10.2.0.1 && natpmpc -a 1 0 tcp 60 -g 10.2.0.1 || {
|
|
echo "error Failure natpmpc $(date)"
|
|
break
|
|
}
|
|
sleep 45
|
|
done
|