aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosy Song <rosysong@rosinson.com>2018-09-23 10:05:04 +0800
committerJo-Philipp Wich <jo@mein.io>2018-12-18 11:28:14 +0100
commit468a4b5b6279423d96e537330dde1ff76d2198ed (patch)
tree109662c140bffa72fd98574e3e91a2521642826c
parent0ccf009b623a149a06e678c53bd7e5c04941cb60 (diff)
downloadupstream-468a4b5b6279423d96e537330dde1ff76d2198ed.tar.gz
upstream-468a4b5b6279423d96e537330dde1ff76d2198ed.tar.bz2
upstream-468a4b5b6279423d96e537330dde1ff76d2198ed.zip
netifd: do not validate relevant section when ipv6 is not supported
Signed-off-by: Rosy Song <rosysong@rosinson.com> (backported from a6add47869972139cef9106aecfddbac0b3f64f4)
-rwxr-xr-xpackage/network/config/netifd/files/etc/init.d/network4
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