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

Small changes

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-10-20 21:14:29 +02:00
parent 66bb9336f4
commit eb5f7c03e9
4 changed files with 14 additions and 4 deletions

View file

@ -24,6 +24,8 @@ _setup_macvlan() {
set network.$1.ifname=$1
set network.$1.type=macvlan
set network.$1.masterintf=$_ifname
set macvlan.$1=macvlan
set macvlan.$1.ifname=$_ifname
EOF
_macaddr=$(uci -q get "network.$1.macaddr")
_setup_macaddr "$1_dev" "${_macaddr:-auto$(date +%s)}"
@ -220,6 +222,7 @@ if [ "$(uci -q get network.wan1.multipath)" = "" ]; then
#set network.@route6[-1].target='::/0'
#EOF
fi
uci -q commit macvlan
uci -q commit network
rm -f /tmp/luci-indexcache
exit 0