#!/bin/sh
#
# Set Playback Volume

# Use Barix utilities.
source /usr/local/sbin/barix-sound-ctrl.sh

start() {
	set_playback_volume
	echo "Storing new Volume settings to /etc/asound.state"
	/usr/sbin/alsactl --file /etc/asound.state store
}

restart() {
	start
}

case "$1" in
  start)
	start
	;;
  stop)
	# no action
	;;
  restart|reload)
	restart
	;;
  *)
	echo "Usage: $0 {start|stop|restart}"
	exit 1
esac

exit $?

