summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-03-28 20:36:03 +0000
committerimp <imp@FreeBSD.org>1999-03-28 20:36:03 +0000
commitcef8c0135112d4b52b152f3def9224e88229fc89 (patch)
treedb1515fdecfc2debfc204bb0a982a1afbd792de8 /etc/rc
parentcc8db63d86528268737ccaa24c4b89612ae33c9b (diff)
downloadFreeBSD-src-cef8c0135112d4b52b152f3def9224e88229fc89.zip
FreeBSD-src-cef8c0135112d4b52b152f3def9224e88229fc89.tar.gz
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
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 69e0c7f..cdc013c 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.182 1999/03/14 20:26:39 des Exp $
+# $Id: rc,v 1.183 1999/03/17 04:00:04 billf Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -150,6 +150,11 @@ if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -b /dev/vn0b ]; then
vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b
fi
+# set sysctl variables early as we can
+if [ -f /etc/rc.sysctl ]; then
+ . /etc/rc.sysctl
+fi
+
# configure serial devices
if [ -f /etc/rc.serial ]; then
. /etc/rc.serial
OpenPOWER on IntegriCloud