diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-11-09 14:09:57 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-11-09 14:09:57 +0000 |
commit | 18dcd89c60ab18efc735c877235502a0dbecaf6b (patch) | |
tree | 4a36b8cb5455decfd2518a7774f07c7bfd45b6d6 /main/ferm/ferm.initd | |
parent | 3f245c5b7148f7b6539b06fc5be84a4eaa2e0263 (diff) | |
download | aports-18dcd89c60ab18efc735c877235502a0dbecaf6b.tar.bz2 aports-18dcd89c60ab18efc735c877235502a0dbecaf6b.tar.xz |
Revert "main/ferm: add check, documentation, openrc"
This reverts commit 651f6f68959de397bb0de401c03f93cde67fef20.
Diffstat (limited to 'main/ferm/ferm.initd')
-rwxr-xr-x | main/ferm/ferm.initd | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/main/ferm/ferm.initd b/main/ferm/ferm.initd deleted file mode 100755 index d855f6f79a..0000000000 --- a/main/ferm/ferm.initd +++ /dev/null @@ -1,40 +0,0 @@ -#!/sbin/openrc-run - -name="ferm" -description="For Easy Rule Making is a perl-based iptables frontend" -description_checkconfig="Checks script validity" - -extra_commands="checkconfig" - -depend() { - after net sysctl - provide firewall -} - -checkconfig() { - ferm -n "$inputfile" -} - -start_pre() { - if [ "${RC_CMD}" != "restart" ] ; then - checkconfig || return $? - fi -} - -stop_pre() { - if [ "${RC_CMD}" = "restart" ] ; then - checkconfig || return $? - fi -} - -start() { - ebegin "Loading $inputfile rules" - ferm "$inputfile" - eend $? -} - -stop() { - ebegin "Unloading $inputfile rules" - ferm -F "$inputfile" - eend $? -} |