[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ChangeRequest: sysctl.conf.local



To: gnats_(_at_)_openbsd_(_dot_)_org
Subject: Change request: /etc/rc
From: reneb_(_at_)_dse_(_dot_)_nl
Cc:
Reply-To: reneb_(_at_)_dse_(_dot_)_nl
X-sendbug-version: 3.97


 >Submitter-Id:  net
 >Originator:    Rene Bedijn
 >Organization:
net
 >Synopsis:      Make administration of local specs easier
 >Severity:      non-critical
 >Priority:      low
 >Category:      system
 >Class:         change-request
 >Release:       3.3
 >Environment:
         System      : OpenBSD 3.3
         Architecture: OpenBSD.i386
         Machine     : i386
 >Description:
	To keep a difference between factory & local settings, it might
	be easier if /etc/rc.conf was changed to incorporate a check for
	a local sysctl.conf ie. sysctl.conf.local.
	As you can see this is along the same line as rc.conf.local.
 >How-To-Repeat:
 >Fix:
To incorporate the suggested solution, a change has to be made to
/etc/rc with the following code added to it:

 >diff -u rc rcNew
--- rc  Sat Mar 29 20:47:45 2003
+++ rcNew Sat Nov  8 09:34:10 2003
@@ -145,6 +145,18 @@
  )
  fi

+# process any local sysctl settings there might be
+if [ -f /etc/sysctl.conf.local ]; then
+(
+       # delete comments and blank lines
+       set -- `stripcom /etc/sysctl.conf.local`
+       while [ $# -ge 1 ] ; do
+               sysctl -w $1
+               shift
+       done
+)
+fi
+
  # set hostname, turn on network
  echo 'starting network'
  . /etc/netstart




Rene
E-Mail: ReneB_(_at_)_Dse_(_dot_)_nl



Visit your host, monkey.org