mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 20:25:19 +02:00
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
This commit is contained in:
parent
7eb00109f8
commit
75683f1fa3
@ -61,7 +61,7 @@ dropbear_start()
|
|||||||
local port
|
local port
|
||||||
local interface
|
local interface
|
||||||
config_get interface "${section}" 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
|
config_get port "${section}" Port 22
|
||||||
append_ports "$interface" "$port"
|
append_ports "$interface" "$port"
|
||||||
# C) banner file
|
# C) banner file
|
||||||
@ -115,8 +115,9 @@ start()
|
|||||||
[ -s /etc/dropbear/dropbear_rsa_host_key -a \
|
[ -s /etc/dropbear/dropbear_rsa_host_key -a \
|
||||||
-s /etc/dropbear/dropbear_dss_host_key ] || keygen
|
-s /etc/dropbear/dropbear_dss_host_key ] || keygen
|
||||||
|
|
||||||
include /lib/network
|
. /lib/functions.sh
|
||||||
scan_interfaces
|
. /lib/functions/network.sh
|
||||||
|
|
||||||
config_load "${NAME}"
|
config_load "${NAME}"
|
||||||
config_foreach dropbear_start dropbear
|
config_foreach dropbear_start dropbear
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user