From efc446d54bbe8adc491a80bce9332960c8566a82 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Mon, 11 Jan 2016 05:35:01 -0500 Subject: openrc-net-20160105-1: updating version --- pcr/openrc-net/unbound.install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pcr/openrc-net/unbound.install (limited to 'pcr/openrc-net/unbound.install') 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}'" +} -- cgit v1.2.3-2-g168b