diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-01-11 05:35:01 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-01-11 05:35:01 -0500 |
commit | efc446d54bbe8adc491a80bce9332960c8566a82 (patch) | |
tree | f944c7363656f07c8dd775738b81d4428423c39f /pcr/openrc-net/unbound.install | |
parent | 582d4ad2b5b25d3211da065dd8b14a6048157b57 (diff) | |
download | abslibre-efc446d54bbe8adc491a80bce9332960c8566a82.tar.gz abslibre-efc446d54bbe8adc491a80bce9332960c8566a82.tar.bz2 abslibre-efc446d54bbe8adc491a80bce9332960c8566a82.zip |
openrc-net-20160105-1: updating version
Diffstat (limited to 'pcr/openrc-net/unbound.install')
-rw-r--r-- | pcr/openrc-net/unbound.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pcr/openrc-net/unbound.install b/pcr/openrc-net/unbound.install new file mode 100644 index 000000000..f1bfd4630 --- /dev/null +++ b/pcr/openrc-net/unbound.install @@ -0,0 +1,16 @@ +_svc="unbound" +_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}'" +} |