Skip to content
Snippets Groups Projects
Commit cac1789e authored by Florian Fainelli's avatar Florian Fainelli
Browse files

Set up ipv6 address if provided in network configuration (#1028)

SVN-Revision: 5738
parent 1ce8e319
No related branches found
No related tags found
No related merge requests found
...@@ -118,6 +118,7 @@ setup_interface() { ...@@ -118,6 +118,7 @@ setup_interface() {
config_get dns "$config" dns config_get dns "$config" dns
$DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask"
$DEBUG ifconfig "$iface" inet6 add "$ip6addr"
[ -z "$gateway" ] || route add default gw "$gateway" [ -z "$gateway" ] || route add default gw "$gateway"
[ -z "$dns" -o -f /tmp/resolv.conf ] || { [ -z "$dns" -o -f /tmp/resolv.conf ] || {
for ns in $dns; do for ns in $dns; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment