source: src-qt4/pc-sounddetect/rc.d/pc-sounddetect @ 1620346

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 1620346 was 1620346, checked in by Kris Moore <kris@…>, 21 months ago

Initial import of PC-BSD /current/ SVN repo

  • Property mode set to 100755
File size: 492 bytes
Line 
1#!/bin/sh
2
3# PROVIDE: snddetect
4# REQUIRE: DAEMON
5# KEYWORD: nojail shutdown
6
7. /etc/rc.subr
8
9name="snddetect"
10rcvar=`set_rcvar`
11
12stop_cmd="snddetect_stop"
13start_cmd="snddetect_start"
14
15load_rc_config $name
16
17: ${snddetect_enable=NO}
18
19snddetect_start()
20{
21        # Remove our unknown sound flag before we redetect
22        if [ -e "/tmp/unknownSound" ]
23        then
24           rm /tmp/unknownSound
25        fi
26        /usr/local/bin/pc-sounddetect
27}
28
29snddetect_stop()
30{
31        echo ""
32}
33
34run_rc_command "$1"
35
Note: See TracBrowser for help on using the repository browser.