summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/oss-sound/rc.oss-linux-free
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-02-22 22:01:24 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-02-22 22:01:24 (GMT)
commit0d47d3fdde570bc1d369b269218ae513976249db (patch)
tree4d4e9b61d58e863fb388192d0d3eab294dd3ccad /abs/mv-core/oss-sound/rc.oss-linux-free
parent1c1d31ef134f3a4607cb32ef56e38b9b993f1956 (diff)
downloadlinhes_pkgbuild-0d47d3fdde570bc1d369b269218ae513976249db.zip
linhes_pkgbuild-0d47d3fdde570bc1d369b269218ae513976249db.tar.gz
linhes_pkgbuild-0d47d3fdde570bc1d369b269218ae513976249db.tar.bz2
Remove oss from mv-core. This is now in extra
Diffstat (limited to 'abs/mv-core/oss-sound/rc.oss-linux-free')
-rwxr-xr-xabs/mv-core/oss-sound/rc.oss-linux-free73
1 files changed, 0 insertions, 73 deletions
diff --git a/abs/mv-core/oss-sound/rc.oss-linux-free b/abs/mv-core/oss-sound/rc.oss-linux-free
deleted file mode 100755
index 48b65e0..0000000
--- a/abs/mv-core/oss-sound/rc.oss-linux-free
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-terminateapps() {
- # Thanks to the Gentoo ebuild/start script for the following
- # http://bugs.gentoo.org/show_bug.cgi?id=184123
- # http://bugs.gentoo.org/attachment.cgi?id=153689
- devs=`perl -e '{while (<>) {m/^(\S*)/; print "/dev/$1\n"}}' \
- < /proc/opensound/devfiles`
- fuser -k ${devs} >/dev/null 2>/dev/null
-}
-
-case "$1" in
- start)
- stat_busy "Starting OSS/Open source driver"
- # start
- /usr/sbin/soundon
- if [ $? -gt 0 ]; then
- stat_fail
- else
- grep '^softoss' /proc/modules >/dev/null 2>/dev/null
- if [ $? -eq 0 ]; then
- stat_busy "Replacing old \"softoss\" module with \"vmix\""
- rmmod softoss
- modprobe vmix
- sed -i 's/^softoss.*$/vmix/' /usr/lib/oss/etc/installed_drivers
- fi
- add_daemon oss-linux-free
- stat_done
- fi
- ;;
- stop)
- stat_busy "Saving OSS mixer"
- /usr/sbin/savemixer
- if [ $? -gt 0 ]; then
- stat_fail
- else
- stat_done
- fi
- grep '^"cuckoo"' /proc/modules >/dev/null 2>/dev/null
- if [ $? -eq 0 ]; then
- stat_busy "Removing \"cuckoo\" module"
- rmmod cuckoo
- fi
- stat_busy "Killing processes using OSS"
- terminateapps
- stat_done
- # It doesn't matter if it didnt kill anything!
- stat_busy "Stopping OSS/Open source driver"
- /usr/sbin/soundoff
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon oss-linux-free
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- terminateapps)
- stat_busy "Killing processes using OSS"
- terminateapps
- stat_done
- # It doesn't matter if it didnt kill anything!
- ;;
- *)
- echo "usage: $0 {start|stop|restart|terminateapps}"
-esac