netifd: add support for the new ar8xxx MIB counters settings
[openwrt/staging/jogo.git] / package / network / config / netifd / files / etc / init.d / network
index 6cd167d19d221dead5e0dc28a518c21c8c120dbb..2321a309a5ceabea034cf567d8b80850ff4f3b59 100755 (executable)
@@ -115,7 +115,9 @@ validate_switch_section()
                'name:string' \
                'enable:bool' \
                'enable_vlan:bool' \
-               'reset:bool'
+               'reset:bool' \
+               'ar8xxx_mib_poll_interval:uinteger' \
+               'ar8xxx_mib_type:range(0,1)'
 }
 
 validate_switch_vlan()
@@ -133,9 +135,9 @@ service_triggers()
        procd_open_validate
        validate_atm_bridge_section
        validate_route_section
-       validate_route6_section
+       [ -e /proc/sys/net/ipv6 ] && validate_route6_section
        validate_rule_section
-       validate_rule6_section
+       [ -e /proc/sys/net/ipv6 ] && validate_rule6_section
        validate_switch_section
        validate_switch_vlan
        procd_close_validate