From d0f0a79920ac8f5165ef27ca921d2fa4b77032fb Mon Sep 17 00:00:00 2001 From: sven-ola Date: Fri, 15 Oct 2010 06:56:24 +0000 Subject: git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@36 3484d885-4da6-438d-b19d-107d078dd756 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3