mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 16:39:31 +00:00
a780977066
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
14 lines
188 B
Bash
14 lines
188 B
Bash
#!/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
|