projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
map: shorten autogenerated sub-interface names to account for limits
[openwrt.git]
/
package
/
network
/
ipv6
/
map
/
files
/
map.sh
diff --git
a/package/network/ipv6/map/files/map.sh
b/package/network/ipv6/map/files/map.sh
index
10789f0
..
5e37aa2
100755
(executable)
--- a/
package/network/ipv6/map/files/map.sh
+++ b/
package/network/ipv6/map/files/map.sh
@@
-176,7
+176,7
@@
proto_map_setup() {
if [ "$type" = "lw4o6" -o "$type" = "map-e" ]; then
json_init
if [ "$type" = "lw4o6" -o "$type" = "map-e" ]; then
json_init
- json_add_string name "${cfg}_
local
"
+ json_add_string name "${cfg}_"
json_add_string ifname "@$(eval "echo \$RULE_${k}_PD6IFACE")"
json_add_string proto "static"
json_add_array ip6addr
json_add_string ifname "@$(eval "echo \$RULE_${k}_PD6IFACE")"
json_add_string proto "static"
json_add_array ip6addr
@@
-189,7
+189,7
@@
proto_map_setup() {
proto_map_teardown() {
local cfg="$1"
proto_map_teardown() {
local cfg="$1"
- ifdown "${cfg}_
local
"
+ ifdown "${cfg}_"
rm -f /tmp/map-$cfg.rules
}
rm -f /tmp/map-$cfg.rules
}