initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

40
ossp/osspd.initd Normal file
View File

@@ -0,0 +1,40 @@
#!/sbin/openrc-run
# Copyright 1999-2010 Gentoo Foundation
# Copyright 2019 Hyperbola Project
# Distributed under the terms of the GNU General Public License v2
OSSPD="/usr/sbin/osspd"
check_prerequisites() {
if [ ! -c /dev/cuse ] ; then
eerror "Cannot find /dev/cuse character device!"
return 1
fi
if [ -x "/usr/sbin/${OSSPD_BACKEND}" ] ; then
CHOSEN_BACKEND="/usr/sbin/${OSSPD_BACKEND}"
else
eerror "Cannot find backend!"
return 1
fi
return 0
}
depend() {
need fuse
after alsasound pulseaudio
}
start() {
check_prerequisites || return 1
ebegin "Starting osspd with ${OSSPD_BACKEND} backend"
start-stop-daemon --start --quiet --exec ${OSSPD} \
-- --dsp-slave=${CHOSEN_BACKEND}
eend $?
}
stop() {
ebegin "Shutting down osspd"
start-stop-daemon --stop --quiet --exec ${OSSPD}
eend $?
}