diff options
Diffstat (limited to 'etc/rc.d/mixerctl')
-rwxr-xr-x | etc/rc.d/mixerctl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/etc/rc.d/mixerctl b/etc/rc.d/mixerctl new file mode 100755 index 0000000..16fcbb9 --- /dev/null +++ b/etc/rc.d/mixerctl @@ -0,0 +1,26 @@ +#!/bin/sh +# +# $NetBSD: mixerctl,v 1.2 2002/06/02 19:04:10 jmcneill Exp $ +# + +# PROVIDE: mixerctl +# REQUIRE: mountcritremote + +. /etc/rc.subr + +name="mixerctl" +start_cmd="mixerctl_start" +stop_cmd=":" + +mixerctl_start() +{ + if [ -r /etc/mixerctl.conf ]; then + echo "Setting mixerctl variables..." + while read setting; do + mixerctl -n -w $setting + done < /etc/mixerctl.conf + fi +} + +load_rc_config $name +run_rc_command "$1" |