2008-07-06 10:39:10 +00:00
|
|
|
--- a/lib.base
|
|
|
|
+++ b/lib.base
|
2010-01-17 17:33:30 +00:00
|
|
|
@@ -220,7 +220,7 @@ reload_kernel_modules() {
|
2008-02-02 18:12:21 +00:00
|
|
|
|
2009-12-11 02:09:19 +00:00
|
|
|
[ -z "$MODULESDIR" ] && \
|
|
|
|
uname=$(uname -r) && \
|
2010-01-17 17:33:30 +00:00
|
|
|
- MODULESDIR=/lib/modules/$uname/kernel/net/ipv4/netfilter:/lib/modules/$uname/kernel/net/netfilter:/lib/modules/$uname/kernel/net/sched:/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/kernel/net/sched:/lib/modules/$uname/extra:/lib/modules/$uname/extra/ipset:/lib/modules/$uname
|
2008-02-02 18:12:21 +00:00
|
|
|
|
|
|
|
MODULES=$(lsmod | cut -d ' ' -f1)
|
|
|
|
|
2010-01-17 17:33:30 +00:00
|
|
|
@@ -259,7 +259,7 @@ load_kernel_modules() # $1 = Yes, if we
|
2008-02-02 18:12:21 +00:00
|
|
|
|
|
|
|
[ -z "$MODULESDIR" ] && \
|
2009-12-11 02:09:19 +00:00
|
|
|
uname=$(uname -r) && \
|
2010-01-17 17:33:30 +00:00
|
|
|
- MODULESDIR=/lib/modules/$uname/kernel/net/ipv4/netfilter:/lib/modules/$uname/kernel/net/netfilter:/lib/modules/$uname/kernel/net/sched:/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/kernel/net/sched:/lib/modules/$uname/extra:/lib/modules/$uname/extra/ipset:/lib/modules/$uname
|
2008-02-02 18:12:21 +00:00
|
|
|
|
|
|
|
for directory in $(split $MODULESDIR); do
|
|
|
|
[ -d $directory ] && moduledirectories="$moduledirectories $directory"
|