Ignore comment (starting with #) lines in mixerctl.conf

This commit is contained in:
abs 2007-03-16 22:30:22 +00:00
parent 803fec88b2
commit bde6709836

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: mixerctl,v 1.9 2004/10/11 15:00:51 christos Exp $
# $NetBSD: mixerctl,v 1.10 2007/03/16 22:30:22 abs Exp $
#
# PROVIDE: mixerctl
@ -30,7 +30,12 @@ mixerctl_start()
if [ -r /etc/mixerctl.conf ]; then
echo "Setting mixerctl variables..."
while read setting; do
[ -z "$setting" ] || /usr/bin/mixerctl -n -w $setting
case "$setting" in
\#*|"")
continue
;;
esac
/usr/bin/mixerctl -n -w $setting
done < /etc/mixerctl.conf
fi
}