Return to rc CVS log | Up to [local] / src / etc |
version 1.128, 2000/01/30 02:17:00 | version 1.129, 2000/01/30 02:45:51 | ||
---|---|---|---|
|
|
||
if [ -f /etc/sysctl.conf ]; then | if [ -f /etc/sysctl.conf ]; then | ||
( | ( | ||
# delete comments and blank lines | # delete comments and blank lines | ||
set -- `sed -e 's/#.*$//' -e '/^$/d' /etc/sysctl.conf` | # we use ed here because /usr may not be mounted yet. | ||
set -- ` | |||
ed -s /etc/sysctl.conf <<EOF | |||
1,\\\$s/#.*$// | |||
g/^..*/p | |||
Q | |||
EOF | |||
` | |||
while [ $# -ge 1 ] ; do | while [ $# -ge 1 ] ; do | ||
sysctl -w $1 | sysctl -w $1 | ||
shift 1 | shift | ||
done | done | ||
) | ) | ||
fi | fi |