Author: cyrus Date: 2015-01-13 20:00:39 +0100 (Tue, 13 Jan 2015) New Revision: 43961
Modified: trunk/package/network/ipv6/map/Makefile trunk/package/network/ipv6/map/files/map.sh Log: map: export calculated ruleset to /tmp Signed-off-by: Steven Barth <[email protected]> Modified: trunk/package/network/ipv6/map/Makefile =================================================================== --- trunk/package/network/ipv6/map/Makefile 2015-01-13 10:23:44 UTC (rev 43960) +++ trunk/package/network/ipv6/map/Makefile 2015-01-13 19:00:39 UTC (rev 43961) @@ -9,7 +9,7 @@ PKG_NAME:=map PKG_VERSION:=3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=GPL-2.0 include $(INCLUDE_DIR)/package.mk Modified: trunk/package/network/ipv6/map/files/map.sh =================================================================== --- trunk/package/network/ipv6/map/files/map.sh 2015-01-13 10:23:44 UTC (rev 43960) +++ trunk/package/network/ipv6/map/files/map.sh 2015-01-13 19:00:39 UTC (rev 43961) @@ -52,6 +52,7 @@ 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 @@ return fi + echo "$RULE_DATA" >> /tmp/map-$cfg.rules eval $RULE_DATA if [ -z "$RULE_BMR" ]; then @@ -188,6 +190,7 @@ proto_map_teardown() { local cfg="$1" ifdown "${cfg}_local" + rm -f /tmp/map-$cfg.rules } proto_map_init_config() { _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
