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)
load_interfaces()
{
config_get interface "$1" Interface
- interfaces=" ${interface} ${interfaces}"
+ config_get enable "$1" enable 1
+
+ [ "${enable}" = "1" ] && interfaces=" ${interface} ${interfaces}"
}
start_service()