forked from Ivasoft/openwrt
base-files: move ipv6 module loading from setup_interface() to addif() in the hotplug call, this ensures that ipv6 is loaded before any interfaces or aliases with ip6addr option are configured (#5356)
SVN-Revision: 17217
This commit is contained in:
@@ -3,6 +3,12 @@
|
||||
include /lib/network
|
||||
|
||||
addif() {
|
||||
# Ensure that ipv6 is loaded, autoloading happens later but ipv6 might be
|
||||
# required now for interface setup.
|
||||
[ -d /proc/sys/net/ipv6 ] || {
|
||||
grep -q '^ipv6' /etc/modules.d/* && insmod ipv6
|
||||
}
|
||||
|
||||
# PPP devices are configured by pppd, no need to run setup_interface here
|
||||
case "$INTERFACE" in
|
||||
ppp*) return 0;;
|
||||
|
||||
Reference in New Issue
Block a user