#!/bin/sh # alsa # Source functions library source /etc/rc.d/init.d/functions log_script_name "$0 $*" alsactl=/usr/sbin/alsactl # See how we were called. case "$1" in start) cmd_run_log_box "Loading sound settings" ${alsactl} restore ;; stop) cmd_run_log_box "Saving sound settings" ${alsactl} store ;; *) echo "Usage: $0 {start|stop}" exit ${EXIT_CODE_FAILURE} ;; esac exit 0