Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43961
3c298f89-4303-0410-b956-
a3cf2f4a3e73
PKG_NAME:=map
PKG_VERSION:=3
PKG_NAME:=map
PKG_VERSION:=3
PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk
PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk
+ echo "rule=$rule" > /tmp/map-$cfg.rules
RULE_DATA=$(mapcalc ${tunlink:-\*} $rule)
if [ "$?" != 0 ]; then
proto_notify_error "$cfg" "INVALID_MAP_RULE"
RULE_DATA=$(mapcalc ${tunlink:-\*} $rule)
if [ "$?" != 0 ]; then
proto_notify_error "$cfg" "INVALID_MAP_RULE"
+ echo "$RULE_DATA" >> /tmp/map-$cfg.rules
eval $RULE_DATA
if [ -z "$RULE_BMR" ]; then
eval $RULE_DATA
if [ -z "$RULE_BMR" ]; then
proto_map_teardown() {
local cfg="$1"
ifdown "${cfg}_local"
proto_map_teardown() {
local cfg="$1"
ifdown "${cfg}_local"
+ rm -f /tmp/map-$cfg.rules
}
proto_map_init_config() {
}
proto_map_init_config() {