You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
924 B
Plaintext

7 years ago
#! /bin/sh
7 years ago
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
7 years ago
### BEGIN INIT INFO
# Provides: procps
# Required-Start: mountkernfs $local_fs
# Required-Stop:
# Should-Start: udev module-init-tools
# X-Start-Before: $network
# Default-Start: S
# Default-Stop:
# Short-Description: Configure kernel parameters at boottime
# Description: Loads kernel parameters that are specified in /etc/sysctl.conf
### END INIT INFO
7 years ago
#
# written by Elrond <Elrond@Wunder-Nett.org>
7 years ago
7 years ago
DESC="Setting kernel variables"
DAEMON=/sbin/sysctl
PIDFILE=none
7 years ago
# Comment this out for sysctl to print every item changed
QUIET_SYSCTL="-q"
7 years ago
do_start_cmd() {
STATUS=0
$DAEMON $QUIET_SYSCTL --system || STATUS=$?
return $STATUS
}
7 years ago
7 years ago
do_stop() { return 0; }
do_status() { return 0; }