rc scripts change for review

Rick Macklem rmacklem at uoguelph.ca
Sat Apr 23 22:14:32 UTC 2011


> 
> So can you say a little more about what you're trying to accomplish?
> It's not clear to me why instead of doing this:
> 
> + if ! sysctl vfs.newnfs >/dev/null 2>&1; then
> + force_depend nfssrv || return 1
> + fi
> 
> you would not just do this:
> 
> + if ! sysctl vfs.newnfs >/dev/null 2>&1; then
> + load_kld nfsd
> + fi
> 
Ok, I just tried this and it didn't work. I don't know why? The
kld_load doesn't complain about failure and when I check after
it's booted, the module is loaded. However, the sysctls complain
about unknown oid, so it isn't loaded in time for them, maybe?
(Anyway, the nfssrv trick seems to work.)

rick


More information about the freebsd-rc mailing list