summaryrefslogtreecommitdiff
path: root/pcr/openrc-net/unbound.install
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-01-11 05:35:01 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-01-11 05:35:01 -0500
commitefc446d54bbe8adc491a80bce9332960c8566a82 (patch)
treef944c7363656f07c8dd775738b81d4428423c39f /pcr/openrc-net/unbound.install
parent582d4ad2b5b25d3211da065dd8b14a6048157b57 (diff)
openrc-net-20160105-1: updating version
Diffstat (limited to 'pcr/openrc-net/unbound.install')
-rw-r--r--pcr/openrc-net/unbound.install16
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}'"
+}