summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-05 09:54:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-05 09:54:38 +0000
commit4a65280898ddc94ba36f97f6f27629dd5638c4e6 (patch)
tree10f0dd82c138844b67709a969e90db687c303676 /etc/rc
parent2da3c1530ec2d19cbb6764b04a3cccd619cc76e2 (diff)
introduce /etc/sysctl.conf containing sysctl variables to change at boot time
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc16
1 files changed, 11 insertions, 5 deletions
diff --git a/etc/rc b/etc/rc
index 11d95a5d3a9..3d4d7f81908 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.60 1998/01/23 08:38:31 art Exp $
+# $OpenBSD: rc,v 1.61 1998/02/05 09:54:36 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -113,10 +113,6 @@ if [ X"${ipfilter}" = X"YES" -a X"${ipmon_flags}" != X"NO" ]; then
echo 'starting ipmon'; ipmon ${ipmon_flags}
fi
-if [ X"${rfc1323}" = X"NO" ]; then
- echo 'disabling rfc1323'; sysctl -w net.inet.tcp.rfc1323=0
-fi
-
# $photurisd_flags is imported from /etc/rc.conf;
# If $photurisd_flags == NO or /etc/photuris/photuris.conf doesn't exist, then
# photurisd isn't run.
@@ -230,6 +226,16 @@ echo clearing /tmp
find . ! -name . ! -name lost+found ! -name quota.user \
! -name quota.group -exec rm -rf -- {} \; -type d -prune)
+if [ -f /etc/sysctl.conf ]; then
+ # delete comments and blank lines
+ set -- `sed -e 's/#.*$//' /etc/sysctl.conf | grep -v '^$'`
+ while [ $# -ge 1 ] ; do
+ sysctl -w $1
+ shift 1
+ done
+)
+fi
+
test -f /etc/rc.securelevel && . /etc/rc.securelevel
if [ X${securelevel} != X"" ]; then
echo -n 'setting kernel security level: '