- at least require mountcritremote (mixerctl is in /usr)

- read from < mixerctl.conf instead of piping output of cat...
This commit is contained in:
lukem 2002-06-11 16:31:41 +00:00
parent cbc959037f
commit 4f32d6fce8
1 changed files with 5 additions and 6 deletions

View File

@ -1,9 +1,10 @@
#!/bin/sh
#
# $NetBSD: mixerctl,v 1.2 2002/06/02 19:04:10 jmcneill Exp $
# $NetBSD: mixerctl,v 1.3 2002/06/11 16:31:41 lukem Exp $
#
# PROVIDE: mixerctl
# REQUIRE: mountcritremote
. /etc/rc.subr
@ -15,11 +16,9 @@ mixerctl_start()
{
if [ -r /etc/mixerctl.conf ]; then
echo "Setting mixerctl variables..."
cat /etc/mixerctl.conf | (
while read setting; do
mixerctl -n -w $setting
done
)
while read setting; do
mixerctl -n -w $setting
done < /etc/mixerctl.conf
fi
}