Babeld reset option_cb if section is ignored

This commit is contained in:
Gio 2019-06-06 19:47:35 +02:00
parent d032a32f9d
commit edad3b3ec5
No known key found for this signature in database
GPG key ID: 47E488E0F409673A

View file

@ -116,7 +116,11 @@ babel_config_cb() {
{
local _ignored
config_get_bool _ignored "$section" 'ignore' 0
[ "$_ignored" == "1" ] && return
[ "$_ignored" == "1" ] &&
{
option_cb() { return; }
return
}
local _ifname
config_get _ifname "$section" 'ifname'