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

up/down omr6in4 if needed or not

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-10-11 18:26:23 +02:00
parent 43a341ca39
commit 6879a4a660

View file

@ -55,7 +55,11 @@ set_ipv6_state() {
start_service() {
[ "$(uci -q get openmptcprouter.settings.disable_ipv6)" != "$(sysctl -w net.ipv6.conf.all.disable_ipv6)" ] && set_ipv6_state
[ "$(uci -q get openmptcprouter.settings.disable_ipv6)" = "1" ] && return
[ "$(uci -q get openmptcprouter.settings.disable_ipv6)" = "1" ] && {
ifdown omr6in4
return
}
ifup omr6in4
procd_open_instance
# shellcheck disable=SC2086
procd_set_param command /bin/omr-6in4