BB: base-files: /lib/functions/network.sh: fix network_get_ipaddr6
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 11 Aug 2014 18:17:09 +0000 (18:17 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 11 Aug 2014 18:17:09 +0000 (18:17 +0000)
commitb980c0d45b63935811f1413470d82aea3e10dad9
tree3d2cb7375a3870ebe85ad4756e3a5df1a289409e
parentfe8370cc7223ca8f271c1bd8834f7917eb168d6d
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

SVN-Revision: 42140
package/base-files/Makefile
package/base-files/files/lib/functions/network.sh