1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Remove random pause after connection failure

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-11-13 14:54:26 +01:00
parent d3715ded36
commit 8515a680aa

View file

@ -898,11 +898,11 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ] || [ "$interface_up" != "true" ]; then
#ubus call network reload
# Set a little sleep after an interface error
if [ -n "$RANDOM" ]; then
sleep `expr $RANDOM % 100`
else
sleep `awk 'BEGIN{srand();print int(rand()*20)}'`
fi
# if [ -n "$RANDOM" ]; then
# sleep `expr $RANDOM % 100`
# else
# sleep `awk 'BEGIN{srand();print int(rand()*20)}'`
# fi
exit 0
fi