mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:43:08 +02:00
Set up ipv6 address if provided in network configuration (#1028)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5738 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1e0a5cc251
commit
9c2c7fac47
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user