Skip to content

Commit

Permalink
Merge pull request #1158 from ilario/watchping_wait_time
Browse files Browse the repository at this point in the history
Watchping: increase wait time for interface to get up
  • Loading branch information
G10h4ck authored Jan 22, 2025
2 parents 5e43aa2 + eb95b16 commit a1618d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/watchping/files/etc/init.d/watchping
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ load_watchping() {
ifname="$(uci_get_state network "$interface" ifname)"

[ -z "$ifname" ] && {
logger -p user.info -t "watchping" "interface $interface does not exist (yet?) waiting 10 seconds to try again"
sleep 10
logger -p user.info -t "watchping" "interface $interface does not exist (yet?) waiting 30 seconds to try again"
sleep 30
ifname="$(uci_get_state network "$interface" ifname)"
[ -z "$ifname" ] && {
logger -p user.info -t "watchping" "interface $interface does not exist in openwrt but continuing..."
Expand Down

0 comments on commit a1618d0

Please sign in to comment.