From 3eeef611d3e7857a63749431f50a5f6a165c4b64 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Sat, 17 Oct 2015 03:41:36 -0500 Subject: openrc-net-20151015-1: updating version --- pcr/openrc-net/vnstat.install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pcr/openrc-net/vnstat.install (limited to 'pcr/openrc-net/vnstat.install') diff --git a/pcr/openrc-net/vnstat.install b/pcr/openrc-net/vnstat.install new file mode 100644 index 000000000..d6c231903 --- /dev/null +++ b/pcr/openrc-net/vnstat.install @@ -0,0 +1,16 @@ +_svc="vnstatd" +_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