diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-12-22 18:55:57 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-12-22 18:55:57 +0000 |
commit | 75683f1fa34bada005db6b8f620bcea9dcb4a934 (patch) | |
tree | d74768493b5e4708b55532628f5fe355f508ca93 /package/network/services | |
parent | 7eb00109f869a7aa0290aee30f9cd33e5d471dae (diff) |
dropbear: use network_get_device instead of scan_interfaces to get the device name
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34863 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services')
-rwxr-xr-x | package/network/services/dropbear/files/dropbear.init | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/package/network/services/dropbear/files/dropbear.init b/package/network/services/dropbear/files/dropbear.init index c909d2896..6fc79017d 100755 --- a/package/network/services/dropbear/files/dropbear.init +++ b/package/network/services/dropbear/files/dropbear.init @@ -61,7 +61,7 @@ dropbear_start() local port local interface config_get interface "${section}" Interface - config_get interface "${interface}" ifname "$interface" + [ -n "$interface" ] && network_get_device interface "$interface" config_get port "${section}" Port 22 append_ports "$interface" "$port" # C) banner file @@ -115,8 +115,9 @@ start() [ -s /etc/dropbear/dropbear_rsa_host_key -a \ -s /etc/dropbear/dropbear_dss_host_key ] || keygen - include /lib/network - scan_interfaces + . /lib/functions.sh + . /lib/functions/network.sh + config_load "${NAME}" config_foreach dropbear_start dropbear } |