summaryrefslogtreecommitdiff
path: root/package/6to4
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-15 01:17:32 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-15 01:17:32 +0000
commit5bf3838a00e7946b2ce50a5c849f9bb270a185be (patch)
tree6e3763f70fc68831d7f683d991140eb65158f1f1 /package/6to4
parentb8295bce77b45219a2880957d70058a0f863d945 (diff)
downloadmtk-20170518-5bf3838a00e7946b2ce50a5c849f9bb270a185be.zip
mtk-20170518-5bf3838a00e7946b2ce50a5c849f9bb270a185be.tar.gz
mtk-20170518-5bf3838a00e7946b2ce50a5c849f9bb270a185be.tar.bz2
6to4: use revert instead of delete, avoids aggregating deltas in /tmp/.uci over time
SVN-Revision: 23998
Diffstat (limited to 'package/6to4')
-rwxr-xr-xpackage/6to4/files/6to4.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/6to4/files/6to4.sh b/package/6to4/files/6to4.sh
index 9dfd7cd..bbf8dba 100755
--- a/package/6to4/files/6to4.sh
+++ b/package/6to4/files/6to4.sh
@@ -116,8 +116,8 @@ setup_interface_6to4() {
local sid="6to4_$cfg"
uci -q batch <<-EOF
- delete radvd.iface_$sid
- delete radvd.prefix_$sid
+ revert radvd.iface_$sid
+ revert radvd.prefix_$sid
set radvd.iface_$sid=interface
set radvd.iface_$sid.ignore=0
set radvd.iface_$sid.interface=${adv_interface:-lan}
@@ -165,8 +165,8 @@ stop_interface_6to4() {
local sid="6to4_$cfg"
uci -q batch <<-EOF
- delete radvd.iface_$sid
- delete radvd.prefix_$sid
+ revert radvd.iface_$sid
+ revert radvd.prefix_$sid
EOF
/etc/init.d/radvd enabled && /etc/init.d/radvd restart