Signed-off-by: Matt Darfeuille <[email protected]>
---
 Shorewall-init/default.debian.systemd  | 21 +++++++++++++++++++++
 Shorewall-init/default.debian.sysvinit | 27 +++++++++++++++++++++++++++
 Shorewall-init/install.sh              |  4 ++--
 3 files changed, 50 insertions(+), 2 deletions(-)
 create mode 100644 Shorewall-init/default.debian.systemd
 create mode 100644 Shorewall-init/default.debian.sysvinit

diff --git a/Shorewall-init/default.debian.systemd 
b/Shorewall-init/default.debian.systemd
new file mode 100644
index 0000000..69f8e4f
--- /dev/null
+++ b/Shorewall-init/default.debian.systemd
@@ -0,0 +1,21 @@
+# List the Shorewall products that Shorewall-init is to
+# initialize (space-separated list).
+#
+# Sample: PRODUCTS="shorewall shorewall6"
+#
+PRODUCTS=""
+
+#
+# Set this to 1 if you want Shorewall-init to react to
+# ifup/ifdown and NetworkManager events
+#
+IFUPDOWN=0
+#
+# Where Up/Down events get logged
+#
+LOGFILE=/var/log/shorewall-ifupdown.log
+
+# Startup options - set verbosity to 0 (minimal reporting)
+OPTIONS="-V0"
+
+# IOF
diff --git a/Shorewall-init/default.debian.sysvinit 
b/Shorewall-init/default.debian.sysvinit
new file mode 100644
index 0000000..3ed139f
--- /dev/null
+++ b/Shorewall-init/default.debian.sysvinit
@@ -0,0 +1,27 @@
+# List the Shorewall products that Shorewall-init is to
+# initialize (space-separated list).
+#
+# Sample: PRODUCTS="shorewall shorewall6"
+#
+PRODUCTS=""
+
+#
+# Set this to 1 if you want Shorewall-init to react to
+# ifup/ifdown and NetworkManager events
+#
+IFUPDOWN=0
+#
+# Set this to the name of the file that is to hold
+# ipset contents. Shorewall-init will load those ipsets
+# during 'start' and will save them there during 'stop'.
+#
+SAVE_IPSETS=""
+#
+# Where Up/Down events get logged
+#
+LOGFILE=/var/log/shorewall-ifupdown.log
+
+# Startup options - set verbosity to 0 (minimal reporting)
+OPTIONS="-V0"
+
+# IOF
diff --git a/Shorewall-init/install.sh b/Shorewall-init/install.sh
index d89dbc3..ce9ab31 100755
--- a/Shorewall-init/install.sh
+++ b/Shorewall-init/install.sh
@@ -361,8 +361,8 @@ if [ $HOST = debian ]; then
        [ -n "${DESTDIR}" ] && make_parent_directory ${DESTDIR}${ETC}/default 
0755
 
        [ $configure -eq 1 ] || make_parent_directory 
${DESTDIR}${CONFDIR}/default 0755
-       install_file sysconfig ${DESTDIR}${ETC}/default/$PRODUCT 0644
-       echo "sysconfig file installed in ${DESTDIR}${SYSCONFDIR}/${PRODUCT}"
+       install_file ${SYSCONFFILE} ${DESTDIR}${ETC}/default/$PRODUCT 0644
+       echo "${SYSCONFFILE} file installed in 
${DESTDIR}${SYSCONFDIR}/${PRODUCT}"
     fi
 
     IFUPDOWN=ifupdown.debian.sh
-- 
2.8.3


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to