aboutsummaryrefslogtreecommitdiffstats
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
commitb6147a222069f94d5c0f890c77d376593214e7f6 (patch)
tree7dadd1abca0eb785e83efe17aab6c35abbf54b90
parent146c415f23d5db076775f4945d5f9ac7afa2f63e (diff)
downloadupstream-b6147a222069f94d5c0f890c77d376593214e7f6.tar.gz
upstream-b6147a222069f94d5c0f890c77d376593214e7f6.tar.bz2
upstream-b6147a222069f94d5c0f890c77d376593214e7f6.zip
[package] 6to4: use revert instead of delete, avoids aggregating deltas in /tmp/.uci over time
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23998 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 9dfd7cd528..bbf8dba41b 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