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

Less output for uci defaults

This commit is contained in:
Ycarus 2019-04-18 09:11:57 +02:00
parent 8a014cf520
commit 7b8c43a449
6 changed files with 33 additions and 33 deletions

View file

@ -3,7 +3,7 @@
. /lib/functions.sh
if [ "$(uci -q show network | grep omr6in4)" = "" ]; then
uci -q batch <<-EOF
uci -q batch <<-EOF >/dev/null
set network.omr6in4=interface
set network.omr6in4.proto=6in4
set network.omr6in4.ip4table=vpn
@ -17,7 +17,7 @@ if [ "$(uci -q show network | grep omr6in4)" = "" ]; then
fi
if [ "$(uci -q get ucitrack.@network[-1].affects | grep omr6in4)" = "" ]; then
uci -q batch <<-EOF
uci -q batch <<-EOF >/dev/null
add_list ucitrack.@network[-1].affects=omr6in4
commit ucitrack
EOF
@ -25,14 +25,14 @@ fi
if [ "$(uci -q get network.omr6in4.ip6addr)" = "" ]; then
uci -q batch <<-EOF
uci -q batch <<-EOF >/dev/null
set network.omr6in4.ip6addr=fe80::a00:2
commit network
EOF
fi
if [ "$(uci -q get firewall.zone_vpn.network | grep omr6in4)" = "" ]; then
uci -q batch <<-EOF
uci -q batch <<-EOF >/dev/null
add_list firewall.zone_vpn.network=omr6in4
commit firewall
EOF