summaryrefslogtreecommitdiff
path: root/opt/alsa-utils/rc.alsa
diff options
context:
space:
mode:
Diffstat (limited to 'opt/alsa-utils/rc.alsa')
-rw-r--r--opt/alsa-utils/rc.alsa26
1 files changed, 26 insertions, 0 deletions
diff --git a/opt/alsa-utils/rc.alsa b/opt/alsa-utils/rc.alsa
new file mode 100644
index 0000000..a7498a2
--- /dev/null
+++ b/opt/alsa-utils/rc.alsa
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# /etc/rc.d/alsa: store/restore ALSA mixer levels
+#
+
+# location of the alsactl executable
+ALSACTL=/usr/sbin/alsactl
+
+case $1 in
+ start)
+ $ALSACTL restore
+ ;;
+ stop)
+ $ALSACTL store
+ ;;
+ restart)
+ $0 stop
+ sleep 2
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 [start|stop|restart]"
+ ;;
+esac
+
+# End of file