aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/sysctl
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1999-03-28 20:36:03 +0000
committerWarner Losh <imp@FreeBSD.org>1999-03-28 20:36:03 +0000
commita780977066c3fbf595deb401a1b626ec9d7ae1c5 (patch)
tree9e5e4f2ce6b3d9f5e3345dd10947fe934deb4a0c /etc/rc.d/sysctl
parent55bfaed1c0175f8d18c843b31171ac69354a20ae (diff)
downloadsrc-a780977066c3fbf595deb401a1b626ec9d7ae1c5.tar.gz
src-a780977066c3fbf595deb401a1b626ec9d7ae1c5.zip
Add two features:
log_in_vain: log_in_vain turns on logging for packets to ports for which there is no listener. rc.sysctl: A generic way to set sysctl values. It reads /etc/syslog.conf and sets values based on that. No /etc/syslog.conf has been checked in yet, and I've not added this to the makefile yet until I get more feedback. Reviewed by: -current, -hackers and bde especially
Notes
Notes: svn path=/head/; revision=45096
Diffstat (limited to 'etc/rc.d/sysctl')
-rw-r--r--etc/rc.d/sysctl13
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/rc.d/sysctl b/etc/rc.d/sysctl
new file mode 100644
index 000000000000..8b1f4473b4b1
--- /dev/null
+++ b/etc/rc.d/sysctl
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# Read in /etc/sysctl.conf and set things accordingly
+#
+# $Id:$
+if [ -f /etc/sysctl.conf ]; then
+ 3< /etc/sysctl.conf
+ while read 0<&3 var;
+ do
+ sysctl -w $var
+ done
+ 3<&-
+fi