1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

reload omr-6in4 after network changes

This commit is contained in:
Ycarus 2018-07-05 18:30:51 +02:00
parent db7d8bd7f8
commit 01c7bacb82

View file

@ -14,15 +14,21 @@ if [ "$(uci -q show network | grep omr6in4)" = "" ]; then
set network.omr6in4.ip6addr=fe80::a00:2
commit network
EOF
rm -f /tmp/luci-indexcache
fi
if [ "$(uci -q get ucitrack.@network[-1].affects | grep omr6in4)" = "" ]; then
uci -q batch <<-EOF
add_list ucitrack.@network[-1].affects=omr6in4
commit ucitrack
EOF
fi
if [ "$(uci -q get network.omr6in4.ip6addr)" = "" ]; then
uci -q batch <<-EOF
set network.omr6in4.ip6addr=fe80::a00:2
commit network
EOF
rm -f /tmp/luci-indexcache
fi
if [ "$(uci -q get firewall.zone_vpn.network | grep omr6in4)" = "" ]; then
@ -30,6 +36,6 @@ if [ "$(uci -q get firewall.zone_vpn.network | grep omr6in4)" = "" ]; then
add_list firewall.zone_vpn.network=omr6in4
commit firewall
EOF
rm -f /tmp/luci-indexcache
fi
rm -f /tmp/luci-indexcache
exit 0