#!/bin/sh # $Header: /root/magellan-cvs/src/alsa/alsa.rc,v 1.2 2008-12-28 23:48:09 niro Exp $ #%rlevels: 2:s 3:s 4:s 5:s 0:k 1:k 6:k #%start: 40 #%stop: 35 #deps #%needs: #%before: #%after: source /etc/conf.d/rc source $rc_functions case "$1" in start) echo -e ${COLOREDSTAR}"Starting ALSA ..." echo -e ${COLOREDSTAR}" Restoring volumes..." loadproc /usr/sbin/alsactl restore #echo -e ${COLOREDSTAR}" Loading MIDI font..." #loadproc sfxload /path/to/soundfont update_svcstatus $1 splash svc_started "$(basename $0)" 0 ;; stop) echo -e ${COLOREDSTAR}"Stopping ALSA..." echo -e ${COLOREDSTAR}" Saving volumes..." loadproc /usr/sbin/alsactl store #echo -e ${COLOREDSTAR}" Removing MIDI font..." #loadproc sfxload -i update_svcstatus $1 splash svc_stopped "$(basename $0)" 0 ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac