summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756>2010-10-15 08:56:24 +0200
committersven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756>2010-10-15 08:56:24 +0200
commitd0f0a79920ac8f5165ef27ca921d2fa4b77032fb (patch)
tree941d3ec07d467474670717f8e3d40c45798ea9bc /Makefile
parent1d2f7df920cba180f2872694a6b1aac58bd186c3 (diff)
downloadNPTv6-d0f0a79920ac8f5165ef27ca921d2fa4b77032fb.tar
NPTv6-d0f0a79920ac8f5165ef27ca921d2fa4b77032fb.zip
git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@36 3484d885-4da6-438d-b19d-107d078dd756
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 070aab0..e5cc2f0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
obj-m := ip6t_MAP66.o
KVERSION := $(shell uname -r)
KPATH := /lib/modules/$(KVERSION)/build
-IPTABLES_VERSION := $(shell /sbin/ip6tables --version|sed 's/^.*\([[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\).*/\1/')
+IPTABLES_VERSION := $(shell (/sbin/ip6tables --version 2>&- || ip6tables --version)|sed 's/^.*\([[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\).*/\1/')
IPTABLES_VERSION_CODE := $(shell echo $$(( $$(echo $(IPTABLES_VERSION)|sed 's/^.*\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*/\1 * 65536 + \2 * 256 + \3/') )))
ifeq ($(DEBUG),1)
EXTRA_CFLAGS := -DDEBUG