mirror of https://github.com/hak5/openwrt.git
6to4: use revert instead of delete, avoids aggregating deltas in /tmp/.uci over time
SVN-Revision: 23998lede-17.01
parent
b8295bce77
commit
5bf3838a00
|
@ -116,8 +116,8 @@ setup_interface_6to4() {
|
||||||
local sid="6to4_$cfg"
|
local sid="6to4_$cfg"
|
||||||
|
|
||||||
uci -q batch <<-EOF
|
uci -q batch <<-EOF
|
||||||
delete radvd.iface_$sid
|
revert radvd.iface_$sid
|
||||||
delete radvd.prefix_$sid
|
revert radvd.prefix_$sid
|
||||||
set radvd.iface_$sid=interface
|
set radvd.iface_$sid=interface
|
||||||
set radvd.iface_$sid.ignore=0
|
set radvd.iface_$sid.ignore=0
|
||||||
set radvd.iface_$sid.interface=${adv_interface:-lan}
|
set radvd.iface_$sid.interface=${adv_interface:-lan}
|
||||||
|
@ -165,8 +165,8 @@ stop_interface_6to4() {
|
||||||
local sid="6to4_$cfg"
|
local sid="6to4_$cfg"
|
||||||
|
|
||||||
uci -q batch <<-EOF
|
uci -q batch <<-EOF
|
||||||
delete radvd.iface_$sid
|
revert radvd.iface_$sid
|
||||||
delete radvd.prefix_$sid
|
revert radvd.prefix_$sid
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
/etc/init.d/radvd enabled && /etc/init.d/radvd restart
|
/etc/init.d/radvd enabled && /etc/init.d/radvd restart
|
||||||
|
|
Loading…
Reference in New Issue