From e8d40b7bc13c2e24cdeb703a1b7573dbf0ef0746 Mon Sep 17 00:00:00 2001 From: jkoshy Date: Fri, 27 Nov 1998 07:06:11 +0000 Subject: Direct std{err,out} to /dev/null when invoking sysctl(8) for setting `nfs_access_cache_timeout'. Submitted by: Andre Albsmeier --- etc/network.subr | 7 ++++--- etc/rc.d/netoptions | 7 ++++--- etc/rc.d/network1 | 7 ++++--- etc/rc.d/network2 | 7 ++++--- etc/rc.d/network3 | 7 ++++--- etc/rc.d/routing | 7 ++++--- etc/rc.network | 7 ++++--- 7 files changed, 28 insertions(+), 21 deletions(-) diff --git a/etc/network.subr b/etc/network.subr index 12654f5..f632d55 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -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 diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions index 12654f5..f632d55 100644 --- a/etc/rc.d/netoptions +++ b/etc/rc.d/netoptions @@ -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 diff --git a/etc/rc.d/network1 b/etc/rc.d/network1 index 12654f5..f632d55 100644 --- a/etc/rc.d/network1 +++ b/etc/rc.d/network1 @@ -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 diff --git a/etc/rc.d/network2 b/etc/rc.d/network2 index 12654f5..f632d55 100644 --- a/etc/rc.d/network2 +++ b/etc/rc.d/network2 @@ -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 diff --git a/etc/rc.d/network3 b/etc/rc.d/network3 index 12654f5..f632d55 100644 --- a/etc/rc.d/network3 +++ b/etc/rc.d/network3 @@ -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 diff --git a/etc/rc.d/routing b/etc/rc.d/routing index 12654f5..f632d55 100644 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -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 diff --git a/etc/rc.network b/etc/rc.network index 12654f5..f632d55 100644 --- a/etc/rc.network +++ b/etc/rc.network @@ -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 -- cgit v1.1