- # Also include an empty "interface $interface" statement, so
- # that babeld operates on this interface.
- cfg_append "interface $interface"
+ # Handle ignore options.
+ local _ignored
+ # This works because we loaded the whole configuration
+ # beforehand (see config_load below).
+ config_get_bool _ignored "$section" 'ignore' 0
+ if [ "$_ignored" -eq 1 ]
+ then
+ option_cb() { return; }
+ else
+ # Also include an empty "interface $interface" statement,
+ # so that babeld operates on this interface.
+ cfg_append "interface $interface"
+ fi