packages/net/shorewall-lite/patches/110-MODULESDIR.patch
nbd e6e0d53b65 Add shorewall-lite package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@10361 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-02 18:12:21 +00:00

22 lines
1.1 KiB
Diff

diff -Nru shorewall-lite-4.0.8.orig/lib.base shorewall-lite-4.0.8/lib.base
--- shorewall-lite-4.0.8.orig/lib.base 2008-01-26 05:40:32.000000000 +0800
+++ shorewall-lite-4.0.8/lib.base 2008-01-26 18:08:32.000000000 +0800
@@ -251,7 +251,7 @@
[ -n "${MODULE_SUFFIX:=o gz ko o.gz ko.gz}" ]
- [ -z "$MODULESDIR" ] && MODULESDIR=/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter:/lib/modules/$(uname -r)/kernel/net/netfilter
+ [ -z "$MODULESDIR" ] && MODULESDIR=/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter:/lib/modules/$(uname -r)/kernel/net/netfilter:/lib/modules/$(uname -r)
MODULES=$(lsmod | cut -d ' ' -f1)
for directory in $(split $MODULESDIR); do
@@ -283,7 +283,7 @@
[ -n "${MODULE_SUFFIX:=o gz ko o.gz ko.gz}" ]
[ -z "$MODULESDIR" ] && \
- MODULESDIR=/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter:/lib/modules/$(uname -r)/kernel/net/netfilter
+ MODULESDIR=/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter:/lib/modules/$(uname -r)/kernel/net/netfilter:/lib/modules/$(uname -r)
for directory in $(split $MODULESDIR); do
[ -d $directory ] && moduledirectories="$moduledirectories $directory"