aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-22 18:55:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-12-22 18:55:57 +0000
commit82bd58c793ec64f532a36e8d10d9d8a81a90908f (patch)
tree5026824656014056410582a500713ac1a83b3e15 /package
parentc3cb63661f7d5513b4ecd2594a3918f39570a1c9 (diff)
downloadupstream-82bd58c793ec64f532a36e8d10d9d8a81a90908f.tar.gz
upstream-82bd58c793ec64f532a36e8d10d9d8a81a90908f.tar.bz2
upstream-82bd58c793ec64f532a36e8d10d9d8a81a90908f.zip
dropbear: use network_get_device instead of scan_interfaces to get the device name
SVN-Revision: 34863
Diffstat (limited to 'package')
-rwxr-xr-xpackage/network/services/dropbear/files/dropbear.init7
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 c909d28965..6fc79017d9 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
}