dropbear: ensure the interface has an ip-address
authorcyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 9 Oct 2014 07:16:35 +0000 (07:16 +0000)
committercyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 9 Oct 2014 07:16:35 +0000 (07:16 +0000)
commit0666449d5c2d4032d2046f64ee43adad125c1290
tree7eadacad8fed6547944347a5d2a2398d4a403ea5
parent68f0766ef46ec16812118970297027d5f32c354e
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42857 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/services/dropbear/files/dropbear.init