#!/bin/sh
# $FreeBSD: tags/RELEASE_10_2_0/sysutils/mixer/files/mixer.sh 340872 2014-01-24 00:14:07Z mat $

MIXERSTATE=/var/db/mixer-state

case $1 in
start)
    [ -r $MIXERSTATE ] && /usr/sbin/mixer `cat $MIXERSTATE` > /dev/null
    ;;
stop)
    /usr/sbin/mixer -s > $MIXERSTATE
    ;;
*)
    echo "usage: `basename $0` {start|stop}" >&2
    exit 64
    ;;
esac
