aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2015-01-13 19:00:39 +0000
committerSteven Barth <cyrus@openwrt.org>2015-01-13 19:00:39 +0000
commit252bb0eeae2c3d4983410aeda79b1c018d1d9164 (patch)
tree9f86d7b31e0dcf274b9a64c6cebe83dcfa2b19e0 /package/network/ipv6
parent2b366700b0c9dd2f903bdcbdc1fd1b1c8989a50d (diff)
downloadupstream-252bb0eeae2c3d4983410aeda79b1c018d1d9164.tar.gz
upstream-252bb0eeae2c3d4983410aeda79b1c018d1d9164.tar.bz2
upstream-252bb0eeae2c3d4983410aeda79b1c018d1d9164.zip
map: export calculated ruleset to /tmp
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 43961
Diffstat (limited to 'package/network/ipv6')
-rw-r--r--package/network/ipv6/map/Makefile2
-rwxr-xr-xpackage/network/ipv6/map/files/map.sh3
2 files changed, 4 insertions, 1 deletions
diff --git a/package/network/ipv6/map/Makefile b/package/network/ipv6/map/Makefile
index 2848fe9ea2..ed358defac 100644
--- a/package/network/ipv6/map/Makefile
+++ b/package/network/ipv6/map/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=map
PKG_VERSION:=3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/ipv6/map/files/map.sh b/package/network/ipv6/map/files/map.sh
index 83de4cc4dc..945accdebd 100755
--- a/package/network/ipv6/map/files/map.sh
+++ b/package/network/ipv6/map/files/map.sh
@@ -52,6 +52,7 @@ proto_map_setup() {
fi
fi
+ echo "rule=$rule" > /tmp/map-$cfg.rules
RULE_DATA=$(mapcalc ${tunlink:-\*} $rule)
if [ "$?" != 0 ]; then
proto_notify_error "$cfg" "INVALID_MAP_RULE"
@@ -59,6 +60,7 @@ proto_map_setup() {
return
fi
+ echo "$RULE_DATA" >> /tmp/map-$cfg.rules
eval $RULE_DATA
if [ -z "$RULE_BMR" ]; then
@@ -188,6 +190,7 @@ proto_map_setup() {
proto_map_teardown() {
local cfg="$1"
ifdown "${cfg}_local"
+ rm -f /tmp/map-$cfg.rules
}
proto_map_init_config() {