summaryrefslogtreecommitdiff
path: root/setup/Linux/oss/scripts/showprocs.sh
blob: 827bb333f4c6d31898187ccf3c8d2703d8106de8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
PROCS="`fuser /dev/mixer* /dev/dsp* /dev/audio* /dev/sequencer /dev/music /dev/midi*|sed 's/.* //'|sort|uniq`"

if test "$PROCS " = " "
then
   exit 0
fi

if test "$1 " != "-q "
then
echo $PROCS
echo
echo "NOTICE!"
echo "======="
echo
echo There are some programs still using OSS devices. You may need to stop them
echo manually:
echo
fi

for pid in $PROCS
do
	ps ax|grep "^ *$pid "
done

echo

exit 0