mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-15 11:24:42 +00:00
dropbear: fix procd interface trigger install
Install procd interface triggers only for interfaces which are enabled so dropbear instances running on (an) enabled interface(s) are not restarted due to an interface trigger of an interface which is disabled. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
This commit is contained in:
parent
dca2966b77
commit
e5bbead1a8
@ -109,7 +109,9 @@ keygen()
|
||||
load_interfaces()
|
||||
{
|
||||
config_get interface "$1" Interface
|
||||
interfaces=" ${interface} ${interfaces}"
|
||||
config_get enable "$1" enable 1
|
||||
|
||||
[ "${enable}" = "1" ] && interfaces=" ${interface} ${interfaces}"
|
||||
}
|
||||
|
||||
start_service()
|
||||
|
Loading…
Reference in New Issue
Block a user