diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-10-17 03:41:36 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-10-17 03:41:36 -0500 |
commit | 3eeef611d3e7857a63749431f50a5f6a165c4b64 (patch) | |
tree | 4552b9ac475bcc01afdec10e4b08161e011dbf7e /pcr/openrc-net/vnstat.install | |
parent | ed4946c6cb73b33354beaaa29e7e567b1127b7dc (diff) | |
download | abslibre-3eeef611d3e7857a63749431f50a5f6a165c4b64.tar.gz abslibre-3eeef611d3e7857a63749431f50a5f6a165c4b64.tar.bz2 abslibre-3eeef611d3e7857a63749431f50a5f6a165c4b64.zip |
openrc-net-20151015-1: updating version
Diffstat (limited to 'pcr/openrc-net/vnstat.install')
-rw-r--r-- | pcr/openrc-net/vnstat.install | 16 |
1 files changed, 16 insertions, 0 deletions
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}'" +} |