On 07/10/2011 17:42, Pan Tsu wrote: > Doug Barton <do...@freebsd.org> writes: > >> Author: dougb >> Date: Sun Jul 10 23:47:03 2011 >> New Revision: 223917 >> URL: http://svn.freebsd.org/changeset/base/223917 >> >> Log: >> Make sure we load kernel modules from the same path as the running kernel >> >> Modified: >> head/etc/rc.d/kld >> >> Modified: head/etc/rc.d/kld >> ============================================================================== >> --- head/etc/rc.d/kld Sun Jul 10 22:09:53 2011 (r223916) >> +++ head/etc/rc.d/kld Sun Jul 10 23:47:03 2011 (r223917) >> @@ -41,11 +41,24 @@ kld_start() >> { >> [ -n "$kld_list" ] || return >> >> - local _kld >> + local _kernel_path _module_path _kld _path >> + >> + _kernel_path=`$SYSCTL_N kern.bootfile` >> + _kernel_path="${_kernel_path%/*}" >> + >> + _module_path=`$SYSCTL_N kern.module_path` >> + _module_path="${_module_path#*\;}" >> + _module_path="$_kernel_path `ltr $_module_path \; ' '`" > [...] > > Doesn't /boot/support.4th already populates kern.module_path with > the path of successfully booted kernel? How is this different?
When you test it, what happens? -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"