diff --git a/shell/natpmpcd b/shell/natpmpcd index 8cd3c9a..fe5a290 100755 --- a/shell/natpmpcd +++ b/shell/natpmpcd @@ -1,9 +1,10 @@ #!/bin/sh while true; do - if ! natpmpc -a 1 0 udp 60 -g 10.2.0.1; then - echo "ERROR with natpmpc command" + 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 - fi + } sleep 45 done