shorewall-lite: update to 4.4.24
[openwrt/svn-archive/archive.git] / net / shorewall-lite / patches / 110-MODULESDIR.patch
1 --- a/lib.common
2 +++ b/lib.common
3 @@ -273,7 +273,7 @@ reload_kernel_modules() {
4
5 [ -z "$MODULESDIR" ] && \
6 uname=$(uname -r) && \
7 - 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
8 + 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
9
10 MODULES=$(lsmod | cut -d ' ' -f1)
11
12 @@ -312,7 +312,7 @@ load_kernel_modules() # $1 = Yes, if we
13
14 [ -z "$MODULESDIR" ] && \
15 uname=$(uname -r) && \
16 - 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
17 + 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
18
19 for directory in $(split $MODULESDIR); do
20 [ -d $directory ] && moduledirectories="$moduledirectories $directory"