git: rc.d - Use kldstat -m to test existance before kldload
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Jan 30 18:26:33 PST 2017
commit 61fb4aca35dab137e1fcb5b5f35363a6c6fb79b4
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Jan 30 18:25:17 2017 -0800
rc.d - Use kldstat -m to test existance before kldload
* Use kldstat -m module || kldload -n module || exit 1 (roughly) when
testing modules in rc scripts.
* Fixes issue where kernels boot up in secure mode (aka vkernels do this
by default) and rc scripts fail because kldload exits immediately with
an error, even if the module already exists.
Summary of changes:
etc/rc.d/abi | 2 +-
etc/rc.d/addswap | 2 +-
etc/rc.d/ip6fw | 2 +-
etc/rc.d/ipfw | 2 +-
etc/rc.d/mountcritremote | 2 +-
etc/rc.d/nfsclient | 2 +-
etc/rc.d/nfsserver | 2 +-
etc/rc.d/pf | 2 +-
etc/rc.d/pflog | 2 +-
etc/rc.d/syscons | 2 +-
etc/rc.d/vknetd | 2 +-
11 files changed, 11 insertions(+), 11 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/61fb4aca35dab137e1fcb5b5f35363a6c6fb79b4
--
DragonFly BSD source repository
More information about the Commits
mailing list