diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-12-16 11:51:24 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-12-16 11:51:24 +0100 |
commit | c6000c9d9949b3326fb82f02431899ab6774b960 (patch) | |
tree | 2453cd564b0f382f3d8ccd893df8ebe2e9aeda71 /oss-hg/oss.rc | |
parent | 453f0f12918af35bd8e1e5f049841360f37d62e4 (diff) | |
download | aur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.gz aur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.xz |
big cleanup
Diffstat (limited to 'oss-hg/oss.rc')
-rw-r--r-- | oss-hg/oss.rc | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/oss-hg/oss.rc b/oss-hg/oss.rc deleted file mode 100644 index 1724aa2..0000000 --- a/oss-hg/oss.rc +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash -. /etc/rc.conf -. /etc/rc.d/functions -case "$1" in - start) - if [ "${msg_lang}" = "cn" ]; then - stat_busy "正在启动 OSS 开源驱动" - else - stat_busy "Starting OSS/Open source driver" - fi - # 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 oss4 - stat_done - fi - ;; - stop) - if [ "${msg_lang}" = "cn" ]; then - stat_busy "正在保存 OSS 设置" - else - stat_busy "Saving OSS mixer" - fi - /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 - if [ "${msg_lang}" = "cn" ]; then - stat_busy "正在关闭 OSS 开源驱动" - else - stat_busy "Stopping OSS/Open source driver" - fi - /usr/sbin/soundoff - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon oss4 - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac |