diff options
author | Rosy Song <rosysong@rosinson.com> | 2018-09-23 10:05:04 +0800 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-09-25 22:35:38 +0200 |
commit | a6add47869972139cef9106aecfddbac0b3f64f4 (patch) | |
tree | 3ccb5ca921e16513fe66e29b269c095145fcf05a /package/network/config/netifd/files | |
parent | 61a59949009993a6b1d634ecbce765b37c4c2560 (diff) | |
download | upstream-a6add47869972139cef9106aecfddbac0b3f64f4.tar.gz upstream-a6add47869972139cef9106aecfddbac0b3f64f4.tar.bz2 upstream-a6add47869972139cef9106aecfddbac0b3f64f4.zip |
netifd: do not validate relevant section when ipv6 is not supported
Signed-off-by: Rosy Song <rosysong@rosinson.com>
Diffstat (limited to 'package/network/config/netifd/files')
-rwxr-xr-x | package/network/config/netifd/files/etc/init.d/network | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/config/netifd/files/etc/init.d/network b/package/network/config/netifd/files/etc/init.d/network index 6cd167d19d..99d9f6582f 100755 --- a/package/network/config/netifd/files/etc/init.d/network +++ b/package/network/config/netifd/files/etc/init.d/network @@ -133,9 +133,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 |