Skip to content

Commit

Permalink
check if watchping exists before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
ilario committed Nov 23, 2024
1 parent 35471b0 commit 1739c53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ setup_hotspot_watchping() {
uci set system.hotspot_watchping.pinghosts=$gw
uci set system.hotspot_watchping.pinginterval=20s
uci commit system
/etc/init.d/watchping restart
[ -e /etc/init.d/watchping ] && /etc/init.d/watchping restart
fi
}

Expand Down

0 comments on commit 1739c53

Please sign in to comment.