Page MenuHomeFreeBSD

rc: Improve load_kld
ClosedPublic

Authored by des on Sat, Jun 20, 1:18 PM.
Tags
None
Referenced Files
F161486693: D57706.diff
Sat, Jul 4, 5:54 AM
F161484504: D57706.id180387.diff
Sat, Jul 4, 5:35 AM
F161484208: D57706.id180387.diff
Sat, Jul 4, 5:33 AM
F161448048: D57706.id180155.diff
Fri, Jul 3, 9:28 PM
F161447833: D57706.id180155.diff
Fri, Jul 3, 9:25 PM
Unknown Object (File)
Thu, Jul 2, 6:34 AM
Unknown Object (File)
Thu, Jul 2, 6:26 AM
Unknown Object (File)
Tue, Jun 30, 10:28 PM
Subscribers

Details

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