base-files: /lib/functions/network.sh: fix network_get_ipaddr6
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 11 Aug 2014 18:15:18 +0000 (18:15 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 11 Aug 2014 18:15:18 +0000 (18:15 +0000)
commit369b4791ce6dd8acac051ff5ee6619af93eb0537
tree5f41eb221d25621e04d78c4ea05b88a37ec53cc9
parent22bbd9f08e5a4583240ec1d55b1fdaa9163ace53
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42139 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/Makefile
package/base-files/files/lib/functions/network.sh