conf/92654: Setting moused_nondefault_enable to NO throws WARNING
Seán Farley
sean-freebsd at farley.org
Tue Jan 31 17:10:03 PST 2006
>Number: 92654
>Category: conf
>Synopsis: Setting moused_nondefault_enable to NO throws WARNING
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 01 01:10:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Seán Farley
>Release: FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD thor.farley.org 6.0-STABLE FreeBSD 6.0-STABLE #0: Tue Jan 10 13:45:31 CST 2006 root at thor.farley.org:/usr/obj/usr/src/sys/THOR i386
>Description:
Setting moused_enable and moused_nondefault_enable to "NO" should stop
moused from loading for any mouse assuming the man page for rc.conf is
correct. When /etc/rc.d/moused is run for my mouse, it throws this
warning:
WARNING: $moused_ums0_enable is not set properly - see rc.conf(5)
The problem is if moused_ums0_enable is not set in rc.conf, it is not set
when moused_nondefault_enable is set to "NO".
>How-To-Repeat:
In rc.conf:
moused_enable="NO"
moused_nondefault_enable="NO"
Run:
/etc/rc.d/moused start ums0
>Fix:
This fix just uses the setting of moused_nondefault_enable as the default
setting for moused_$2_enable.
This can also be found at: http://www.farley.org/freebsd/tmp/PR/<PR #>/
--- moused.orig Thu Nov 3 02:12:06 2005
+++ moused Tue Jan 31 18:48:38 2006
@@ -23,8 +23,7 @@
# expected to be the mouse device.
#
if [ -n "$2" ]; then
- checkyesno moused_nondefault_enable &&
- eval moused_$2_enable=\${moused_$2_enable-YES}
+ eval moused_$2_enable=\${moused_$2_enable-${moused_nondefault_enable}}
rcvar=`set_rcvar moused_$2`
pidfile="${_pidprefix}.$2.pid"
_pidarg="-I $pidfile"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list