odhcp6c: support multiple additional user prefixes
[openwrt/openwrt.git] / package / network / ipv6 / odhcp6c / files / dhcpv6.script
index 03efaf7..3171013 100755 (executable)
@@ -48,7 +48,9 @@ setup_interface () {
                fi
        done
 
                fi
        done
 
-       [ -n "$USERPREFIX" ] && proto_add_ipv6_prefix "$USERPREFIX"
+       for prefix in $USERPREFIX; do
+               proto_add_ipv6_prefix "$prefix"
+       done
 
        # Merge addresses
        for entry in $RA_ADDRESSES; do
 
        # Merge addresses
        for entry in $RA_ADDRESSES; do