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:
parent
43a341ca39
commit
6879a4a660
1 changed files with 5 additions and 1 deletions
|
@ -55,7 +55,11 @@ set_ipv6_state() {
|
||||||
|
|
||||||
start_service() {
|
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)" != "$(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
|
procd_open_instance
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
procd_set_param command /bin/omr-6in4
|
procd_set_param command /bin/omr-6in4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue