summaryrefslogtreecommitdiff
path: root/pcr/openrc-security/firewalld.install
diff options
context:
space:
mode:
authorDavid P <megver83@openmailbox.org>2017-09-26 22:18:27 -0300
committerDavid P <megver83@openmailbox.org>2017-09-26 22:18:27 -0300
commit889bd5eb1c9f4d6018fcfad65724c0a67cf0d8d1 (patch)
treeb21b988db24618386bb6b3057c89dae4efe772b9 /pcr/openrc-security/firewalld.install
parentde9f81790af660d848c317a686716673b62ae39b (diff)
downloadabslibre-889bd5eb1c9f4d6018fcfad65724c0a67cf0d8d1.tar.gz
abslibre-889bd5eb1c9f4d6018fcfad65724c0a67cf0d8d1.tar.bz2
abslibre-889bd5eb1c9f4d6018fcfad65724c0a67cf0d8d1.zip
Added pcr/openrc-security
Diffstat (limited to 'pcr/openrc-security/firewalld.install')
-rw-r--r--pcr/openrc-security/firewalld.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/pcr/openrc-security/firewalld.install b/pcr/openrc-security/firewalld.install
new file mode 100644
index 000000000..ddab9e43a
--- /dev/null
+++ b/pcr/openrc-security/firewalld.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}'"
+}