Ignore:
Timestamp:
2011-12-20T02:10:15+01:00 (4 years ago)
Author:
jow
Message:

[package] firewall:

  • introduce per-section "option enabled" which defaults to "1" - useful to disable rules or zones without having to delete them
  • annotate default traffic rules with names
  • bump version
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/firewall/files/lib/config.sh

    r21642 r29577  
    3535                config_get "${prefix}TYPE" "$config" TYPE 
    3636        } 
    37          
     37 
     38        local enabled 
     39        config_get_bool enabled "$config" enabled 1 
     40        [ $enabled -eq 1 ] || return 1 
     41 
    3842        [ "$1" == '{' ] && shift 
    3943        while [ $# -ge 3 ]; do 
Note: See TracChangeset for help on using the changeset viewer.