summarylogtreecommitdiffstats
path: root/firewalld-openrc.install
diff options
context:
space:
mode:
authorChris Cromer2016-09-04 16:19:40 -0300
committerChris Cromer2016-09-04 16:19:40 -0300
commit0dc1f4368e22be8f3881e525851d67741645e783 (patch)
tree203502243b04ce3fbe2987ae71b88bdf18c7c607 /firewalld-openrc.install
downloadaur-firewalld-openrc.tar.gz
intial commit
Diffstat (limited to 'firewalld-openrc.install')
-rw-r--r--firewalld-openrc.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/firewalld-openrc.install b/firewalld-openrc.install
new file mode 100644
index 000000000000..ddab9e43a17d
--- /dev/null
+++ b/firewalld-openrc.install
@@ -0,0 +1,16 @@
+_svc="firewalld"
+_rlvl="default"
+
+post_install() {
+ _cmd="rc-update add ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}