Magellan Linux

Annotation of /trunk/alsa/alsa.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (hide annotations) (download)
Sat Jul 2 17:07:55 2005 UTC (18 years, 10 months ago) by niro
File size: 931 byte(s)
new

1 niro 28 #!/bin/sh
2     # $Header: /root/magellan-cvs/src/alsa/alsa.rc,v 1.1 2005-07-02 17:07:55 niro Exp $
3    
4     #%rlevels: 2:s 3:s 4:s 5:s 0:k 1:k 6:k
5     #%start: 40
6     #%stop: 35
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13     source /etc/sysconfig/rc
14     source $rc_functions
15    
16     case "$1" in
17     start)
18     echo -e ${COLOREDSTAR}"Starting ALSA ..."
19     echo -e ${COLOREDSTAR}" Restoring volumes..."
20     loadproc /usr/sbin/alsactl restore
21     #echo -e ${COLOREDSTAR}" Loading MIDI font..."
22     #loadproc sfxload /path/to/soundfont
23     update_svcstatus $1
24     splash svc_started "$(basename $0)" 0
25     ;;
26    
27     stop)
28     echo -e ${COLOREDSTAR}"Stopping ALSA..."
29     echo -e ${COLOREDSTAR}" Saving volumes..."
30     loadproc /usr/sbin/alsactl store
31     #echo -e ${COLOREDSTAR}" Removing MIDI font..."
32     #loadproc sfxload -i
33     update_svcstatus $1
34     splash svc_stopped "$(basename $0)" 0
35     ;;
36    
37     restart)
38     $0 stop
39     sleep 1
40     $0 start
41     ;;
42    
43     *)
44     echo "Usage: $0 {start|stop|restart}"
45     exit 1
46     ;;
47     esac

Properties

Name Value
svn:executable *