X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage5%2Fbootscripts%2Falsa;fp=stage5%2Fbootscripts%2Falsa;h=c0de29607d0588a3c4b33b3f60ed994caed652db;hb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;hp=0000000000000000000000000000000000000000;hpb=fb687a8c2dc6ac58f8be02dda9b3f04cc9d10f28;p=hvlinux.git diff --git a/stage5/bootscripts/alsa b/stage5/bootscripts/alsa new file mode 100755 index 0000000..c0de296 --- /dev/null +++ b/stage5/bootscripts/alsa @@ -0,0 +1,29 @@ +#!/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