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

Increase default sleep on ModemManager modem restart and add it as a parameter in network luci interface

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-09-18 19:38:52 +02:00
parent c525e9c9f2
commit ef0040e56f
3 changed files with 13 additions and 7 deletions

View file

@ -263,6 +263,8 @@ _restart
OMR_TRACKER_INTERFACE_PROTO="$(uci -q get network.${OMR_TRACKER_INTERFACE}.proto)"
OMR_TRACKER_PREV_STATUS=""
[ "$OMR_TRACKER_INTERFACE_PROTO" = "modemmanager" ] && sleep $(uci -q get network.${OMR_TRACKER_INTERFACE}.delay || echo '120')
# main loop
while true; do
# setup tracker variables