BB: base-files: /lib/functions/network.sh: fix network_get_ipaddr6
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 11 Aug 2014 18:17:09 +0000 (18:17 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 11 Aug 2014 18:17:09 +0000 (18:17 +0000)
commita62f6c751b0905b69acbdf0b80a4b9cd12b89170
treea6519609e22a61d8c3294c63c115962ad461209a
parente77adae70c09298b871d074b35142d4845a0a7ca
BB: base-files: /lib/functions/network.sh: fix network_get_ipaddr6

When looking for the first ipaddr also consider the current prefix just
like network_get_ipaddrs6 does. If ipv6-address was empty the function
did not return the first ipaddr even if the list was non-empty.

fixes commit 83e9122f88a002871d5cdf421cf6aa6052b7e006

Signed-off-by: Henning Schild <henning@hennsch.de>
Backport of r42139

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42140 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/Makefile
package/base-files/files/lib/functions/network.sh