Ré-organisatrion stage3 et stage5 comme les stages 0 à 2
[hvlinux.git] / stage5 / bootscripts / alsa
diff --git a/stage5/bootscripts/alsa b/stage5/bootscripts/alsa
new file mode 100755 (executable)
index 0000000..c0de296
--- /dev/null
@@ -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