mirror of
https://github.com/opnsense/src.git
synced 2026-03-09 01:30:47 -04:00
* All variables are now embraced: ${foo}
* All comparisons against some value now take the form:
[ "${foo}" ? "value" ]
where ? is a comparison operator
* All empty string tests now take the form:
[ -z "${foo}" ]
* All non-empty string tests now take the form:
[ -n "${foo}" ]
Submitted by: jkh
13 lines
235 B
Bash
13 lines
235 B
Bash
#!/bin/sh
|
|
#
|
|
# Read in /etc/sysctl.conf and set things accordingly
|
|
#
|
|
# $Id: rc.sysctl,v 1.1 1999/03/28 20:36:03 imp Exp $
|
|
if [ -f /etc/sysctl.conf ]; then
|
|
3< /etc/sysctl.conf
|
|
while read 0<&3 var;
|
|
do
|
|
sysctl -w ${var}
|
|
done
|
|
3<&-
|
|
fi
|