summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jacob <jacob@internet24.de>2008-05-20 17:17:02 +0200
committerPatrick McHardy <kaber@trash.net>2008-05-20 17:17:02 +0200
commitf858d3702f7a0e4434fa82836f3666d3d5b6816e (patch)
tree5621f1ada4f224db68bdccd6185dfe0044aac096
parent69ceee5ebe1a57b274cbadbe918d9763c5bd85b3 (diff)
Don't assume /bin/sh is bash
The new iptables git version assumes /bin/sh is always GNU bash, that's not the case (Ubuntu 8.04 uses dash), see attachment for a fix. Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r--extensions/GNUmakefile.in14
1 files changed, 8 insertions, 6 deletions
diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in
index 9c46ab10..94195744 100644
--- a/extensions/GNUmakefile.in
+++ b/extensions/GNUmakefile.in
@@ -124,10 +124,11 @@ initext4.c: .initext4.dd
for i in ${initext_func}; do \
echo "extern void lib$${i}_init(void);" >>$@; \
done; \
- echo -en "void init_extensions(void);\n" >>$@; \
- echo -en "void init_extensions(void)\n""{\n" >>$@; \
+ echo "void init_extensions(void);" >>$@; \
+ echo "void init_extensions(void)" >>$@; \
+ echo "{" >>$@; \
for i in ${initext_func}; do \
- echo -e "\t""lib$${i}_init();" >>$@; \
+ echo " ""lib$${i}_init();" >>$@; \
done; \
echo "}" >>$@; \
);
@@ -139,10 +140,11 @@ initext6.c: .initext6.dd
for i in ${initext6_func}; do \
echo "extern void lib$${i}_init(void);" >>$@; \
done; \
- echo -en "void init_extensions(void);\n" >>$@; \
- echo -en "void init_extensions(void)\n""{\n" >>$@; \
+ echo "void init_extensions(void);" >>$@; \
+ echo "void init_extensions(void)" >>$@; \
+ echo "{" >>$@; \
for i in ${initext6_func}; do \
- echo -e "\t""lib$${i}_init();" >>$@; \
+ echo " ""lib$${i}_init();" >>$@; \
done; \
echo "}" >>$@; \
);