382031c5c2
It also includes the following changes: * use the shorewall "restore" action (very quick) if available in the initscript's restart action * modify the 110-MODULESDIR.patch to include /lib/modules/$(uname -r) in the module search path * include an iface hotplug action to reload the ruleset on interface transitions Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca> git-svn-id: svn://svn.openwrt.org/openwrt/packages@18737 3c298f89-4303-0410-b956-a3cf2f4a3e73
21 lines
1.1 KiB
Diff
21 lines
1.1 KiB
Diff
--- a/lib.base
|
|
+++ b/lib.base
|
|
@@ -267,7 +267,7 @@ reload_kernel_modules() {
|
|
|
|
[ -z "$MODULESDIR" ] && \
|
|
uname=$(uname -r) && \
|
|
- MODULESDIR=/lib/modules/$uname/kernel/net/ipv4/netfilter:/lib/modules/$uname/kernel/net/netfilter:/lib/modules/$uname/extra:/lib/modules/$uname/extra/ipset
|
|
+ MODULESDIR=/lib/modules/$uname/kernel/net/ipv4/netfilter:/lib/modules/$uname/kernel/net/netfilter:/lib/modules/$uname/extra:/lib/modules/$uname/extra/ipset:/lib/modules/$uname
|
|
|
|
MODULES=$(lsmod | cut -d ' ' -f1)
|
|
|
|
@@ -306,7 +306,7 @@ load_kernel_modules() # $1 = Yes, if we
|
|
|
|
[ -z "$MODULESDIR" ] && \
|
|
uname=$(uname -r) && \
|
|
- MODULESDIR=/lib/modules/$uname/kernel/net/ipv4/netfilter:/lib/modules/$uname/kernel/net/netfilter:/lib/modules/$uname/extra:/lib/modules/$uname/extra/ipset
|
|
+ MODULESDIR=/lib/modules/$uname/kernel/net/ipv4/netfilter:/lib/modules/$uname/kernel/net/netfilter:/lib/modules/$uname/extra:/lib/modules/$uname/extra/ipset:/lib/modules/$uname
|
|
|
|
for directory in $(split $MODULESDIR); do
|
|
[ -d $directory ] && moduledirectories="$moduledirectories $directory"
|