dropbear: ensure the interface has an ip-address
authorSteven Barth <cyrus@openwrt.org>
Thu, 9 Oct 2014 07:16:35 +0000 (07:16 +0000)
committerSteven Barth <cyrus@openwrt.org>
Thu, 9 Oct 2014 07:16:35 +0000 (07:16 +0000)
commitb2d099c11c5e747aac3910e5d90133093d92760c
tree9142f4c15f07b7b072b007c2e7ea094ee39e83a3
parent14e6559eee9202d17f99493b5c7603b369c56294
dropbear: ensure the interface has an ip-address

Use network_get_ipaddrs_all to get all ip-addresses of an interface. If the
function fails, the interface does not exists or has not any suiteable ip
addresses assigned.

Use the returned ip-address(es) to construct the dropbear listen address.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 42857
package/network/services/dropbear/files/dropbear.init