summaryrefslogtreecommitdiff
path: root/pcr/openrc-misc/pulseaudio.install
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-12-29 11:41:28 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-12-29 11:41:28 -0500
commit94268f9c5fc1a7377bdf027ef83e30f502c9288b (patch)
treee03c0c9a985bbeef491cba4943ab20410b921ae8 /pcr/openrc-misc/pulseaudio.install
parentf224cb449d1e24d0537299fd2748bbb0bd8cfbf4 (diff)
downloadabslibre-94268f9c5fc1a7377bdf027ef83e30f502c9288b.tar.gz
abslibre-94268f9c5fc1a7377bdf027ef83e30f502c9288b.tar.bz2
abslibre-94268f9c5fc1a7377bdf027ef83e30f502c9288b.zip
openrc-misc-20151229-1.parabola1: updating version
Diffstat (limited to 'pcr/openrc-misc/pulseaudio.install')
-rw-r--r--pcr/openrc-misc/pulseaudio.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/pcr/openrc-misc/pulseaudio.install b/pcr/openrc-misc/pulseaudio.install
new file mode 100644
index 000000000..f1b1b698f
--- /dev/null
+++ b/pcr/openrc-misc/pulseaudio.install
@@ -0,0 +1,16 @@
+_svc="pulseaudio"
+_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}'"
+}