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)
commit99ae7b90e13ff9df9ec9cf0230d8280564e9c7a7
tree7eadacad8fed6547944347a5d2a2398d4a403ea5
parent1c642cef0664db26b00a9987e310e294c1f4db8f
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