summaryrefslogtreecommitdiff
path: root/alsa-utils/rc.alsa
blob: a7498a270f3d53fcd94ede0a122e41c4d3e0b4d0 (plain)
    1 #!/bin/sh
    2 #
    3 # /etc/rc.d/alsa: store/restore ALSA mixer levels
    4 #
    5 
    6 # location of the alsactl executable
    7 ALSACTL=/usr/sbin/alsactl
    8 
    9 case $1 in
   10 	start)
   11 		$ALSACTL restore
   12 		;;
   13 	stop)
   14 		$ALSACTL store
   15 		;;
   16 	restart)
   17 		$0 stop
   18 		sleep 2
   19 		$0 start
   20 		;;
   21 	*)
   22 		echo "Usage: $0 [start|stop|restart]"
   23 		;;
   24 esac
   25 
   26 # End of file

Generated by cgit