diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-04-26 16:44:02 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-04-26 21:29:16 +0200 |
commit | e5bbead1a83944293fccc27679ba9846d133374e (patch) | |
tree | b47805e50e48a5f6afefd198801b23fd9ae301b0 /package/network/services/dropbear | |
parent | dca2966b77b6caa6da4cbd9314a05961a71ffaed (diff) | |
download | mtk-20170518-e5bbead1a83944293fccc27679ba9846d133374e.zip mtk-20170518-e5bbead1a83944293fccc27679ba9846d133374e.tar.gz mtk-20170518-e5bbead1a83944293fccc27679ba9846d133374e.tar.bz2 |
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>
Diffstat (limited to 'package/network/services/dropbear')
-rwxr-xr-x | package/network/services/dropbear/files/dropbear.init | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/network/services/dropbear/files/dropbear.init b/package/network/services/dropbear/files/dropbear.init index c5210cd..3fd2c57 100755 --- a/package/network/services/dropbear/files/dropbear.init +++ b/package/network/services/dropbear/files/dropbear.init @@ -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() |