8 if [[ -z "$DSP_SLAVE" ]]; then
10 if [[ -x /usr
/bin
/pulseaudio
]]; then
11 DSP_SLAVE
="/usr/sbin/ossp-padsp"
13 DSP_SLAVE
="/usr/sbin/ossp-alsap"
17 preclaim_oss
=/sys
/module
/soundcore
/parameters
/preclaim_oss
19 PID
=`pidof -o %PPID /usr/sbin/osspd`
22 stat_busy
"Starting OSS userspace bridge"
23 if [ -z "$PID" ]; then
24 if [[ -r $preclaim_oss && "$(cat $preclaim_oss)" -eq 1 ]]; then
25 echo "Must boot with soundcore.preclaim_oss=0"
28 modprobe cuse
&>/dev
/null
29 modprobe
-r snd-pcm-oss snd-mixer-oss
&>/dev
/null
31 /usr
/sbin
/osspd
--dsp-slave="$DSP_SLAVE"
33 if [ -n "$PID" -o $?
-gt 0 ]; then
41 stat_busy
"Stopping OSS userspace bridge"
42 [ -n "$PID" ] && kill $PID &>/dev
/null
56 echo "usage: $0 {start|stop|restart}"