Changeset 28242 for branches/backfire


Ignore:
Timestamp:
2011-09-14T15:37:48+02:00 (5 years ago)
Author:
acinonyx
Message:

Backport "[package] base-files: Fix IPv6 address and route adding on aliases with no IPv4 address configured"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/package/base-files/files/lib/network/config.sh

    r27654 r28242  
    262262 
    263263        [ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" broadcast "${bcast:-+}" 
    264         [ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" add "$ip6addr" 
     264        [ -z "$ip6addr" ] || $DEBUG ifconfig "${iface%:*}" add "$ip6addr" 
    265265        [ -z "$gateway" ] || $DEBUG route add default gw "$gateway" ${metric:+metric $metric} dev "$iface" 
    266         [ -z "$ip6gw" ] || $DEBUG route -A inet6 add default gw "$ip6gw" ${metric:+metric $metric} dev "$iface" 
     266        [ -z "$ip6gw" ] || $DEBUG route -A inet6 add default gw "$ip6gw" ${metric:+metric $metric} dev "${iface%:*}" 
    267267        [ -z "$dns" ] || add_dns "$config" $dns 
    268268 
Note: See TracChangeset for help on using the changeset viewer.