Needed for many thinks in the IPv6 world.
Signed-off-by: Alina Friedrichsen <[email protected]>
Index: package/base-files/files/lib/network/config.sh
===================================================================
--- package/base-files/files/lib/network/config.sh (Revision 18794)
+++ package/base-files/files/lib/network/config.sh (Arbeitskopie)
@@ -178,7 +178,14 @@
config_get bcast "$config" broadcast
[ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" broadcast "${bcast:-+}"
- [ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" add "$ip6addr"
+ [ -z "$ip6addr" ] || {
+ set -- $ip6addr
+ local i="$#"
+ while [ "$i" -gt 0 ]; do
+ eval "\$DEBUG ifconfig \"\$iface\" add \"\$$i\""
+ i="$((i - 1))"
+ done
+ }
[ -z "$gateway" ] || $DEBUG route add default gw "$gateway" dev "$iface"
[ -z "$ip6gw" ] || $DEBUG route -A inet6 add default gw "$ip6gw" dev "$iface"
[ -z "$dns" ] || {
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel