The negative logic is confusing, and it would get even more confusing
with the incoming ip6tables and nftables support.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
--- /dev/null
+# /etc/conf.d/miniupnpd: Configuration for miniupnpd init script
+
+# extra arguments to be passed to the command
+#extra_args=""
+
+# the location of the configuration file
+#config_file="/etc/miniupnpd/miniupnpd.conf"
+
+# enable manipulating iptables on start/stop
+iptables_scripts=1
start_pre() {
local retval=0
- if [ -z "${no_iptables_scripts}" ]; then
+ if [ -n "${iptables_scripts}" ]; then
/etc/miniupnpd/iptables_init.sh || retval=${?}
fi
stop_post() {
local retval=0
- if [ -z "${no_iptables_scripts}" ]; then
+ if [ -n "${iptables_scripts}" ]; then
/etc/miniupnpd/iptables_removeall.sh
fi
emake PREFIX="${ED}" STRIP=true install
newinitd "${FILESDIR}"/${PN}-init.d-r2 ${PN}
- newconfd "${FILESDIR}"/${PN}-conf.d-r1 ${PN}
+ newconfd "${FILESDIR}"/${PN}-conf.d-r2 ${PN}
}
pkg_postinst() {