diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-12-05 21:12:42 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-12-05 21:12:42 -0500 |
commit | f6ed10b20413ec83fef004e8ec3512dfcc011520 (patch) | |
tree | 03f9ee72dcb7677fb20c3c6b476332a90d9f1fe4 /pcr/firewalld-openrc/firewalld-openrc.install | |
parent | 6c563005c5a51b82410b460cb117ea9a1be2d6a6 (diff) | |
download | abslibre-f6ed10b20413ec83fef004e8ec3512dfcc011520.tar.gz abslibre-f6ed10b20413ec83fef004e8ec3512dfcc011520.tar.bz2 abslibre-f6ed10b20413ec83fef004e8ec3512dfcc011520.zip |
firewalld-openrc: add new package to [pcr]
Diffstat (limited to 'pcr/firewalld-openrc/firewalld-openrc.install')
-rw-r--r-- | pcr/firewalld-openrc/firewalld-openrc.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pcr/firewalld-openrc/firewalld-openrc.install b/pcr/firewalld-openrc/firewalld-openrc.install new file mode 100644 index 000000000..ddab9e43a --- /dev/null +++ b/pcr/firewalld-openrc/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}'" +} |