Cyrille Lefevre <[EMAIL PROTECTED]> types:
> Mike Meyer wrote:
> [snip]
> > conf/21722            The mixer settings are lost on system reboot.
> > 
> > This should probably be closed due to the work being done on the
> > NetBSD rc system. The same functionality can be provided as a port,
> > which is probably better anyway. I'll do that if this one gets closed.
> 
> much better is to keep it, at least to remember that something like
> that have to be done.

I'm not convinced it needs to be done. It's not really a critical
feature, and very few people seem to miss it. It makes a lot more
sense as a port that the few people who miss it can install.  I've
already got the script; I just want to make sure I don't do the work
of turning it into a port only to have this thing committed.

The script is so trivial I use it as an example of how to do rc.d
scripts on -questions.

        <mike

#!/bin/sh

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


--
Mike Meyer <[EMAIL PROTECTED]>                      http://www.mired.org/home/mwm/
Q: How do you make the gods laugh?              A: Tell them your plans.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to