From 11a916c4dfec837c32695a4c539c58c5e29150b2 Mon Sep 17 00:00:00 2001 From: jow Date: Mon, 10 Aug 2009 23:48:10 +0000 Subject: [package] 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) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17217 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/hotplug.d/net/10-net | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'package/base-files/files/etc') diff --git a/package/base-files/files/etc/hotplug.d/net/10-net b/package/base-files/files/etc/hotplug.d/net/10-net index 06e5244447..f46dcd08d6 100644 --- a/package/base-files/files/etc/hotplug.d/net/10-net +++ b/package/base-files/files/etc/hotplug.d/net/10-net @@ -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;; -- cgit v1.2.3