Page MenuHomeFreeBSD

rc: Improve load_kld
ClosedPublic

Authored by des on Sat, Jun 20, 1:18 PM.
Tags
None
Referenced Files
F160398377: D57706.diff
Wed, Jun 24, 2:55 AM
F160375768: D57706.diff
Tue, Jun 23, 9:14 PM
Unknown Object (File)
Tue, Jun 23, 2:46 AM
Unknown Object (File)
Mon, Jun 22, 2:45 PM
Subscribers

Details

Reviewers
imp
Group Reviewers
rc
Commits
rGa95d324dd310: rc: Improve load_kld
Summary
  • Centralize the usage message.
  • Document and enforce that -e and -m are mutually exclusive; previously, speficying both would result in only -e being applied.
  • If -e was not specified, and -m was not specified or did not match, fall back to kldstat -n file which will always work for modules that aren't built into the kernel.

This means the kld and ntpd scripts can now rely on load_kld to dtrt.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable