diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-04-26 16:44:02 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-12-13 15:20:13 +0100 |
commit | f30114c7c427a9568d56578560aad9cf5839e4df (patch) | |
tree | 206951890ff5d268a38ce06d30661147e8627ff0 /package/network/services/dropbear | |
parent | 3e7f191008e8d8566a952cf8d7bcc270425bfc83 (diff) | |
download | mtk-20170518-f30114c7c427a9568d56578560aad9cf5839e4df.zip mtk-20170518-f30114c7c427a9568d56578560aad9cf5839e4df.tar.gz mtk-20170518-f30114c7c427a9568d56578560aad9cf5839e4df.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>
(cherry picked from commit e5bbead1a83944293fccc27679ba9846d133374e)
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 5c21359..2d23ebd 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() |