Date: Tue, 08 Jan 2002 03:42:19 -0800 From: Mike Makonnen <mike_makonnen@yahoo.com> To: Thomas Quinot <quinot@inf.enst.fr> Cc: freebsd-gnats-submit@freebsd.org, current@freebsd.org Subject: Re: conf/31358: Updated patch for -CURRENT Message-ID: <200201081142.g08BgJZ42494@blackbox.pacbell.net> In-Reply-To: <20020108110201.A36413@shalmaneser.enst.fr> References: <20020108110201.A36413@shalmaneser.enst.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 8 Jan 2002 11:02:06 +0100 Thomas Quinot <quinot@inf.enst.fr> wrote: [snip] > + # Handle absent nfs client support > + if sysctl vfs.nfs >/dev/null 2>&1; then > + nfsclient_in_kernel=1 > + else > + nfsclient_in_kernel=0 > + fi > + This should be handled inside the case statement for ${nfs_client_enable}, as you want to load the nfsclient kld only if the nfs client is enabled. > case ${nfs_client_enable} in > [Yy][Ee][Ss]) > + kldload nfsclient && nfsclient_in_kernel=1 > + > + case $nfsclient_in_kernel in > + 1) > + ;; > + *) > + echo 'Warning: NFS client kernel module failed to load' > + nfs_client_enable=NO > + ;; > + esac > + ;; > + esac > + > + case "${nfs_client_enable}" in > + [Yy][Ee][Ss]) > if [ -n "${nfs_access_cache}" ]; then > echo -n " NFS access cache time=${nfs_access_cache}" > sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null > @@ -732,6 +754,27 @@ > echo -n ' rpc.lockd'; rpc.lockd > ;; > esac You should clean this up so there is only *one* 'case "${nfs_client_enable}"'. Look at the implementation of case ${nfs_server_enable}, earlier in rc.network for an example of how it should be done. Cheers, mike makonnen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201081142.g08BgJZ42494>