Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Mar 2005 22:31:14 +0200
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        Jose M Rodriguez <josemi@freebsd.jazztel.es>
Cc:        freebsd-current@freebsd.org
Subject:   Re: rcNG changes/aditions
Message-ID:  <20050315203114.GB1558@gothmog.gr>
In-Reply-To: <200503152058.16299.freebsd@redesjm.local>
References:  <200503142306.54642.freebsd@redesjm.local> <20050315062548.GA42826@gothmog.gr> <200503152058.16299.freebsd@redesjm.local>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-03-15 20:58, Jose M Rodriguez <josemi@freebsd.jazztel.es> wrote:
> El Martes, 15 de Marzo de 2005 07:25, Giorgos Keramidas escribi?:
> > On 2005-03-14 23:06, Jose M Rodriguez <josemi@freebsd.jazztel.es> wrote:
> > > update to PR conf/75137 (sound modules): I rework this adding
> > > support for preloaded modules to /etc/rc.subr
> > >
> > > +					# try to load ${name}_modules
> > > +					#
> > > +			eval "_modules=\$${name}_modules"
> > > +			if [ -n "${_modules}" ]; then
> > > +				debug "run_rc_command: kldload ${_modules}."
> > > +				eval "preload_modules ${_modules}"
> > > +				_return=$?
> > > +				[ $_return -ne 0 ] && [ -z "$rc_force" ] &&
> > > +				    return 1
> > > +			fi
> >
> > What happens if some of the modules are already loaded and rc_force
> > is not set?
>
> preload_modules test if the module is loaded before trying to load.   It
> only load what is not loaded before.  I'm not sure if the logic is 100%
> safe, but I tested this case.

I must have missed this part.  Thanks the clarification :-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050315203114.GB1558>