blob: 05129dc862c154b1bbb07365d89da3a0ea69405e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
# $NetBSD: script,v 1.1 2001/04/26 02:44:47 garbled Exp $
if [ "$3" = "now" -o "$3" = "both" ]; then
sysctl -w $1=$2
fi
if [ "$3" = "boot" -o "$3" = "both" ]; then
IFS=" "
CONF=`cat /etc/sysctl.conf`
echo $CONF | grep -v $1 > /etc/sysctl.conf
echo "$1=$2" >>/etc/sysctl.conf
fi
|