Magellan Linux

Annotation of /branches/unlabeled-1.1.1/magellan-initscripts/etc/rc.d/init.d/alsa

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 4 months ago) by niro
File size: 875 byte(s)
imported.

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

Properties

Name Value
svn:executable *