Direct std{err,out} to /dev/null when invoking sysctl(8) for setting

`nfs_access_cache_timeout'.

Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
This commit is contained in:
Joseph Koshy 1998-11-27 07:06:11 +00:00
parent 18830dba83
commit 8dbc5051b3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41371
7 changed files with 28 additions and 21 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.34 1998/11/11 05:23:44 peter Exp $
# $Id: rc.network,v 1.35 1998/11/15 20:30:04 msmith Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -258,8 +258,9 @@ network_pass3() {
if [ "X${nfs_client_enable}" = X"YES" ]; then
echo -n ' nfsiod'; nfsiod ${nfs_client_flags}
if [ ! "X${nfs_access_cache}" = X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache}
if [ "X${nfs_access_cache}" != X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} \
>/dev/null 2>&1
fi
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.34 1998/11/11 05:23:44 peter Exp $
# $Id: rc.network,v 1.35 1998/11/15 20:30:04 msmith Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -258,8 +258,9 @@ network_pass3() {
if [ "X${nfs_client_enable}" = X"YES" ]; then
echo -n ' nfsiod'; nfsiod ${nfs_client_flags}
if [ ! "X${nfs_access_cache}" = X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache}
if [ "X${nfs_access_cache}" != X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} \
>/dev/null 2>&1
fi
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.34 1998/11/11 05:23:44 peter Exp $
# $Id: rc.network,v 1.35 1998/11/15 20:30:04 msmith Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -258,8 +258,9 @@ network_pass3() {
if [ "X${nfs_client_enable}" = X"YES" ]; then
echo -n ' nfsiod'; nfsiod ${nfs_client_flags}
if [ ! "X${nfs_access_cache}" = X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache}
if [ "X${nfs_access_cache}" != X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} \
>/dev/null 2>&1
fi
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.34 1998/11/11 05:23:44 peter Exp $
# $Id: rc.network,v 1.35 1998/11/15 20:30:04 msmith Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -258,8 +258,9 @@ network_pass3() {
if [ "X${nfs_client_enable}" = X"YES" ]; then
echo -n ' nfsiod'; nfsiod ${nfs_client_flags}
if [ ! "X${nfs_access_cache}" = X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache}
if [ "X${nfs_access_cache}" != X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} \
>/dev/null 2>&1
fi
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.34 1998/11/11 05:23:44 peter Exp $
# $Id: rc.network,v 1.35 1998/11/15 20:30:04 msmith Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -258,8 +258,9 @@ network_pass3() {
if [ "X${nfs_client_enable}" = X"YES" ]; then
echo -n ' nfsiod'; nfsiod ${nfs_client_flags}
if [ ! "X${nfs_access_cache}" = X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache}
if [ "X${nfs_access_cache}" != X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} \
>/dev/null 2>&1
fi
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.34 1998/11/11 05:23:44 peter Exp $
# $Id: rc.network,v 1.35 1998/11/15 20:30:04 msmith Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -258,8 +258,9 @@ network_pass3() {
if [ "X${nfs_client_enable}" = X"YES" ]; then
echo -n ' nfsiod'; nfsiod ${nfs_client_flags}
if [ ! "X${nfs_access_cache}" = X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache}
if [ "X${nfs_access_cache}" != X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} \
>/dev/null 2>&1
fi
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.network,v 1.34 1998/11/11 05:23:44 peter Exp $
# $Id: rc.network,v 1.35 1998/11/15 20:30:04 msmith Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@ -258,8 +258,9 @@ network_pass3() {
if [ "X${nfs_client_enable}" = X"YES" ]; then
echo -n ' nfsiod'; nfsiod ${nfs_client_flags}
if [ ! "X${nfs_access_cache}" = X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache}
if [ "X${nfs_access_cache}" != X ]; then
sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} \
>/dev/null 2>&1
fi
fi