network/net-lib.sh: fix IPv6 route parsing

Harald Hoyer 2015-09-01 17:25:34 +02:00
parent d8572e0bf4
commit a4c47ce0dd
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ setup_net() {
route_to_var "$_p" || continue
[ -n "$route_dev" ] && [ "$route_dev" != "$netif" ] && continue
ip route add "$route_mask" ${route_gw:+via "$route_gw"} ${route_dev:+dev "$route_dev"}
if strstr ":" "$route_mask"; then
if strstr "$route_mask" ":"; then
printf -- "%s\n" "$route_mask ${route_gw:+via $route_gw} ${route_dev:+dev $route_dev}" \
> /tmp/net.route6."$netif"
else