Magellan Linux

Annotation of /trunk/alsa/alsa.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 745 - (hide annotations) (download)
Sun Dec 28 23:48:09 2008 UTC (15 years, 10 months ago) by niro
File size: 928 byte(s)
-fixed moved rc

1 niro 28 #!/bin/sh
2 niro 745 # $Header: /root/magellan-cvs/src/alsa/alsa.rc,v 1.2 2008-12-28 23:48:09 niro Exp $
3 niro 28
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 niro 745 source /etc/conf.d/rc
14 niro 28 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 *