This commit is contained in:
Jeffrey Serio 2025-03-23 11:59:22 -05:00
parent 852b0ef96b
commit 07213c2268

View File

@ -1,9 +1,10 @@
#!/bin/sh #!/bin/sh
while true; do while true; do
if ! natpmpc -a 1 0 udp 60 -g 10.2.0.1; then date
echo "ERROR with natpmpc command" 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 break
fi }
sleep 45 sleep 45
done done