Subject: misc/22524: rc.d/mixerctl uses deprecated -f option
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bjan@bjan.net>
List: netbsd-bugs
Date: 08/17/2003 14:55:44
>Number: 22524
>Category: misc
>Synopsis: rc.d/mixerctl uses deprecated -f option
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 18 04:57:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Bruce J.A. Nourish
>Release: NetBSD 1.6W
>Organization:
Bruce J.A. Nourish <bjan+JUNK@bjan.net>
>Environment:
System: NetBSD starmaiden.bjan.net 1.6W NetBSD 1.6W (STARMAIDEN-$Revision: 0.2 $) #0: Sun Aug 17 06:25:37 MST 2003 root@starmaiden.bjan.net:/usr/obj/sys/arch/i386/compile/STARMAIDEN i386
Architecture: i386
Machine: i386
>Description:
mixerctl(1) states that -f is deprecated in favor of -d. rc.d/mixerctl
uses -f anyway.
>How-To-Repeat:
$ fgrep -- -f /etc/rc.d/mixerctl
>Fix:
--- /tmp/mixerctl.old 2003-08-17 14:44:58.000000000 -0700
+++ /etc/rc.d/mixerctl 2003-08-17 14:45:13.000000000 -0700
@@ -20,7 +20,7 @@
for mix in $mixerctl_mixers; do
if [ -s /var/db/${mix}.conf ]; then
echo -n " $mix"
- /usr/bin/mixerctl -f /dev/$mix -n -w \
+ /usr/bin/mixerctl -d /dev/$mix -n -w \
`/bin/cat /var/db/${mix}.conf`
fi
done
@@ -40,7 +40,7 @@
echo -n "Saving mixer settings:"
for mix in $mixerctl_mixers; do
echo -n " $mix"
- /usr/bin/mixerctl -f /dev/$mix -a > /var/db/${mix}.conf
+ /usr/bin/mixerctl -d /dev/$mix -a > /var/db/${mix}.conf
done
echo "."
fi
>Release-Note:
>Audit-Trail:
>Unformatted:
-current pulled sometime today, 17th Aug 03.