diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-01-02 12:14:50 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-01-02 12:14:50 -0500 |
commit | 6d7a251bc9c86562e1b2c5c5e4a8cb82c647bb36 (patch) | |
tree | 76672b04d3a83dda803f5f66e0dc1f7a1698f0a9 /pcr/openrc-net/snort.install | |
parent | 1fc9c5931bda6129d3a8fe1525b8e6bdf81e6ef3 (diff) | |
download | abslibre-6d7a251bc9c86562e1b2c5c5e4a8cb82c647bb36.tar.gz abslibre-6d7a251bc9c86562e1b2c5c5e4a8cb82c647bb36.tar.bz2 abslibre-6d7a251bc9c86562e1b2c5c5e4a8cb82c647bb36.zip |
openrc-net-20151230-1: updating version
Diffstat (limited to 'pcr/openrc-net/snort.install')
-rw-r--r-- | pcr/openrc-net/snort.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pcr/openrc-net/snort.install b/pcr/openrc-net/snort.install new file mode 100644 index 000000000..5514fbee9 --- /dev/null +++ b/pcr/openrc-net/snort.install @@ -0,0 +1,16 @@ +_svc="snort" +_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}'" +} |