summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/mixerctl
blob: 16fcbb9d4163145e8793a52904f547219bffd2c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"
OpenPOWER on IntegriCloud