mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
base-files: Fix IPv6 address and route adding on aliases with no IPv4 address configured
SVN-Revision: 28241
This commit is contained in:
parent
200fd7bce1
commit
98372a8eb5
@ -261,9 +261,9 @@ setup_interface_static() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
[ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" broadcast "${bcast:-+}"
|
[ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" broadcast "${bcast:-+}"
|
||||||
[ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" add "$ip6addr"
|
[ -z "$ip6addr" ] || $DEBUG ifconfig "${iface%:*}" add "$ip6addr"
|
||||||
[ -z "$gateway" ] || $DEBUG route add default gw "$gateway" ${metric:+metric $metric} dev "$iface"
|
[ -z "$gateway" ] || $DEBUG route add default gw "$gateway" ${metric:+metric $metric} dev "$iface"
|
||||||
[ -z "$ip6gw" ] || $DEBUG route -A inet6 add default gw "$ip6gw" ${metric:+metric $metric} dev "$iface"
|
[ -z "$ip6gw" ] || $DEBUG route -A inet6 add default gw "$ip6gw" ${metric:+metric $metric} dev "${iface%:*}"
|
||||||
[ -z "$dns" ] || add_dns "$config" $dns
|
[ -z "$dns" ] || add_dns "$config" $dns
|
||||||
|
|
||||||
config_get type "$config" TYPE
|
config_get type "$config" TYPE
|
||||||
|
Loading…
Reference in New Issue
Block a user