Skip to content

Commit

Permalink
watchping increase wait time for interface to get up
Browse files Browse the repository at this point in the history
  • Loading branch information
ilario committed Jan 6, 2025
1 parent 50a4a09 commit eb95b16
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 eb95b16

Please sign in to comment.