<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/etc/rc.d/moused, branch release/8.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2009-10-16T00:17:09Z</updated>
<entry>
<title>MFC r197947:</title>
<updated>2009-10-16T00:17:09Z</updated>
<author>
<name>Doug Barton</name>
<email>dougb@FreeBSD.org</email>
</author>
<published>2009-10-16T00:17:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=888d94cf9b58e44d8bb8f921a7ff79818eef28c1'/>
<id>urn:sha1:888d94cf9b58e44d8bb8f921a7ff79818eef28c1</id>
<content type='text'>
In regards to the "Starting foo:" type messages at boot time, create
and employ a more generic solution, and use it in the individual rc.d
scripts that also have an $rc_quiet test:

1. Add check_startmsgs() to rc.subr.
2. In the rc.d scripts that use rc_quiet (and rc.subr) substitute
variations of [ -z "$rc_quiet" ] with check_startmsgs
3. In savecore add a trailing '.' to the end of the message to make it
more consistent with other scripts.
4. In newsyslog remove a : before the terminal '.' since we do not
expect there to be anything printed out in between to make it more
consistent.
5. In the following scripts change "quotes" to 'quotes' where no
variables exist in the message: savecore pf newsyslog
6. [Does not apply in RELENG_8]
7. In the following scripts separate the "Starting foo:" from the
terminal '.' to make them more consistent: moused hostname pf
8. In nfsclient move the message to its own line to avoid a style bug
9. In pf rc_quiet does not apply to the _stop method, so remove the
test there.
10. In motd add 'quotes' around the terminal '.' for consistency

Approved by:	re (kib)
</content>
</entry>
<entry>
<title>Small cleanup, add (spurious) quotation marks around the value</title>
<updated>2009-05-30T21:51:38Z</updated>
<author>
<name>Doug Barton</name>
<email>dougb@FreeBSD.org</email>
</author>
<published>2009-05-30T21:51:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=fe9e60d287c9eda46e9c7f779142d359ebdd616b'/>
<id>urn:sha1:fe9e60d287c9eda46e9c7f779142d359ebdd616b</id>
<content type='text'>
for name= to make these scripts consistent with the rest.
</content>
</entry>
<entry>
<title>Add the shutdown KEYWORD to those scripts that start persistent services</title>
<updated>2008-07-16T19:50:29Z</updated>
<author>
<name>Doug Barton</name>
<email>dougb@FreeBSD.org</email>
</author>
<published>2008-07-16T19:50:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=04f0f225dd6e7385d69013002e9770207846216d'/>
<id>urn:sha1:04f0f225dd6e7385d69013002e9770207846216d</id>
<content type='text'>
to allow them to do a "clean" shutdown.

I purposely avoided making changes to network-related stuff since the
system shutting down is pretty conclusive, and there may be complicated
dependencies on the network that I would rather not try to unravel.

I also skipped kerberos-related stuff for the reasons above, and
because I have no way to test it.
</content>
</entry>
<entry>
<title>As previously discussed, add the svn:executable property to all scripts</title>
<updated>2008-07-16T19:22:48Z</updated>
<author>
<name>Doug Barton</name>
<email>dougb@FreeBSD.org</email>
</author>
<published>2008-07-16T19:22:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2b9851690c2169b48245ff1b770752f057251e85'/>
<id>urn:sha1:2b9851690c2169b48245ff1b770752f057251e85</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move a lot of diagnostic output behind $rc_quiet in scripts that</title>
<updated>2008-06-23T04:46:54Z</updated>
<author>
<name>Mike Makonnen</name>
<email>mtm@FreeBSD.org</email>
</author>
<published>2008-06-23T04:46:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=94789e5ca4ff7c51f9580f3418fd16ad6d35c81f'/>
<id>urn:sha1:94789e5ca4ff7c51f9580f3418fd16ad6d35c81f</id>
<content type='text'>
implement their own start command.
</content>
</entry>
<entry>
<title>Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files</title>
<updated>2007-12-08T07:20:23Z</updated>
<author>
<name>Doug Barton</name>
<email>dougb@FreeBSD.org</email>
</author>
<published>2007-12-08T07:20:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e3c46a3332ca75f03905d73ea4d766e7cc267fea'/>
<id>urn:sha1:e3c46a3332ca75f03905d73ea4d766e7cc267fea</id>
<content type='text'>
with theirs, so this information doesn't need to be in the live file.
Having it in our CVS history is enough.
</content>
</entry>
<entry>
<title>Eliminate global symbols starting with an underscore from rc.d</title>
<updated>2006-12-30T22:53:20Z</updated>
<author>
<name>Yaroslav Tykhiy</name>
<email>ytykhiy@gmail.com</email>
</author>
<published>2006-12-30T22:53:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=45da9952e505c2defec11d35a8fab56135b82bcd'/>
<id>urn:sha1:45da9952e505c2defec11d35a8fab56135b82bcd</id>
<content type='text'>
scripts, except for mdconfig* and jail.  Such symbols are reserved
for the rc.subr internals.  Most scripts can be fixed by just
declaring _foo symbols as local: few scripts actually need them to
be global.

Discussed with:	dougb in freebsd-rc
</content>
</entry>
<entry>
<title>Correctly set moused_$2_enable when moused_nondefault_enable is set to NO</title>
<updated>2006-05-17T11:37:09Z</updated>
<author>
<name>Matteo Riondato</name>
<email>matteo@FreeBSD.org</email>
</author>
<published>2006-05-17T11:37:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a697c38c3d0252a6ac939fd9a6af6839ff8ea3b4'/>
<id>urn:sha1:a697c38c3d0252a6ac939fd9a6af6839ff8ea3b4</id>
<content type='text'>
PR:		conf/92654
MFC after:	3
</content>
</entry>
<entry>
<title>"REQUIRE: cleanvar" for all RC's writing into /var/run.</title>
<updated>2005-01-16T03:12:03Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2005-01-16T03:12:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=835e0fa318d85113643e78fceff2f806f6c34fc4'/>
<id>urn:sha1:835e0fa318d85113643e78fceff2f806f6c34fc4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Do a better job of supporting more than one mouse device</title>
<updated>2004-11-01T18:05:41Z</updated>
<author>
<name>Mike Makonnen</name>
<email>mtm@FreeBSD.org</email>
</author>
<published>2004-11-01T18:05:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=86bade27519f9608a2c92564924d55fc89a3d47e'/>
<id>urn:sha1:86bade27519f9608a2c92564924d55fc89a3d47e</id>
<content type='text'>
on the system.

To start/stop/check on a specific device give the device name as
the second argument to the script:
	# /etc/rc.d/moused start ums0

To use different rc.conf(5) knobs with different mice use the device
name as part of the knob. For example, if the mouse device is ums0, then:
	moused_ums0_enable=yes
	moused_ums0_flags="-z 4"
	moused_ums0_port="/dev/ums0"

Starting rc.d/moused without the device argument will use the standard
moused_* flags. So, this commit should not disrupt or change current usage.

To preserve current behaviour with respect to usb mice, which appear
automatically when inserted, there is a new knob, moused_nondefault_enable,
which will treat any devices without rc.conf knobs as enabled.

To minimize knobs in /etc/rc.conf, the device file and pid file are
auto-computed, so that in the typical case for a usb mouse you don't
need to add anything extra in /etc/rc.conf to get it working.

Additionally, this updates /etc/usbd.conf to use the rc.d/moused script so
people don't have to modify it to configure their usb mouse anymore.

MFC after: 1 month
</content>
</entry>
</feed>
