From: Hans Dedecker Date: Wed, 26 Apr 2017 14:44:02 +0000 (+0200) Subject: dropbear: fix procd interface trigger install X-Git-Tag: v17.01.5~240 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f30114c7c427a9568d56578560aad9cf5839e4df;p=openwrt%2Fstaging%2Fchunkeey.git 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 (cherry picked from commit e5bbead1a83944293fccc27679ba9846d133374e) --- diff --git a/package/network/services/dropbear/files/dropbear.init b/package/network/services/dropbear/files/dropbear.init index 5c21359cbf..2d23ebd045 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()