Re: rcNG changes/aditions

From: Giorgos Keramidas <keramida_at_ceid.upatras.gr>
Date: Tue, 15 Mar 2005 08:25:48 +0200
On 2005-03-14 23:06, Jose M Rodriguez <josemi_at_freebsd.jazztel.es> wrote:
> update to PR conf/75137 (sound modules): I rework this adding support
> for preloaded modules to /etc/rc.subr

> +#
>  # run_rc_command argument
[...]
> +					# 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?  It looks like this may cause run_rc_command() to fail, even
though the modules are loaded and a subsequent run of the rc command
would succeed if attempted.

- Giorgos
Received on Tue Mar 15 2005 - 05:25:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:30 UTC