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

Restart interface at the end of OMR-Tracker post-tracking error script and disable for OMRVPN

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-09-20 08:58:14 +02:00
parent 6ac3d8c200
commit 5bf1d8243a
2 changed files with 19 additions and 12 deletions

View file

@ -142,5 +142,12 @@ if [ "$(uci -q get omr-tracker.server.type)" = "" ]; then
commit omr-tracker
EOF
fi
if [ -z "$(uci -q get omr-tracker.omrvpn.restart_down)" ]; then
uci -q batch <<-EOF >/dev/null
set omr-tracker.omrvpn.restart_down='0'
commit omr-tracker
EOF
fi
exit 0