+

Add sysctl config file to preserve deprecated CONFIG_NF_CT_ACCT

Benjamin Renard [2013-08-14 10:52:48]
Add sysctl config file to preserve deprecated CONFIG_NF_CT_ACCT
Filename
dirs
rules
wifidog-gateway.sysctl
diff --git a/dirs b/dirs
index 4fb0f1a..ff8cbd9 100644
--- a/dirs
+++ b/dirs
@@ -1,4 +1,5 @@
 etc
+etc/sysctl.d
 usr/bin
 usr/include/wifidog
 usr/lib
diff --git a/rules b/rules
index 470bc28..f329b5e 100755
--- a/rules
+++ b/rules
@@ -47,6 +47,9 @@ install: build
 	cp $(CURDIR)/wifidog.conf $(CURDIR)/debian/wifidog-gateway/etc
 	cp $(CURDIR)/wifidog-msg.html $(CURDIR)/debian/wifidog-gateway/etc

+	cp $(CURDIR)/debian/wifidog-gateway.syctl $(CURDIR)/debian/wifidog-gateway/etc/sysctl.d
+
+	cp $(CURDIR)/wifidog-msg.html $(CURDIR)/debian/wifidog-gateway/etc
 	cp $(CURDIR)/src/wdctl $(CURDIR)/debian/wifidog-gateway/usr/bin
 	cp $(CURDIR)/src/.libs/wifidog $(CURDIR)/debian/wifidog-gateway/usr/bin

diff --git a/wifidog-gateway.sysctl b/wifidog-gateway.sysctl
new file mode 100644
index 0000000..cd31249
--- /dev/null
+++ b/wifidog-gateway.sysctl
@@ -0,0 +1,2 @@
+# Wifidog Gateway still use deprecated CONFIG_NF_CT_ACCT. To preserve this kernel option
+net.netfilter.nf_conntrack_acct=1
ViewGit