Annotation of /trunk/magellan-initscripts/etc/rc.d/init.d/alsa
Parent Directory | Revision Log
Revision 71 -
(hide annotations)
(download)
Tue Mar 15 19:07:56 2005 UTC (19 years, 2 months ago) by niro
File size: 974 byte(s)
Tue Mar 15 19:07:56 2005 UTC (19 years, 2 months ago) by niro
File size: 974 byte(s)
updated header and fixed whitespaces
1 | niro | 2 | #!/bin/sh |
2 | niro | 71 | # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/alsa,v 1.2 2005-03-15 19:07:50 niro Exp $ |
3 | niro | 2 | |
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 | * |