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:
parent
8a014cf520
commit
7b8c43a449
6 changed files with 33 additions and 33 deletions
|
@ -1,12 +1,12 @@
|
|||
#!/bin/sh
|
||||
uci -q batch <<-EOF
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@macvlan[-1]
|
||||
add ucitrack macvlan
|
||||
set ucitrack.@macvlan[-1].init=macvlan
|
||||
commit ucitrack
|
||||
EOF
|
||||
if [ "$(uci -q get ucitrack.@network[-1].affects | grep macvlan)" = "" ]; then
|
||||
uci -q batch <<-EOF
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
add_list ucitrack.@network[-1].affects=macvlan
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue