#!/bin/sh

#############################
## KERNEL VARIABLES SCRIPT ##
#############################

## Callum Dickinson <gcfreak_ag20@hotmail.com>
## Sonic Team Junior <http://www.srb2.org>
## http://mb.srb2.org/showthread.php?t=31137
## svn://code.srb2.org/SRB2/branches/WII

## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or (at your option) any later version.

## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.


## Any lines in this file preceeded by a hash ('#') indicates a comment, and is not read by the interpreter.

#--------------------#
. /lib/lsb/init-functions
. /etc/profile
LOGFILE="$LOGDIR/$ME.log"
#--------------------#

case "$1" in
       start|restart|force-reload)
	           quiet="-ne"
			   if [ "$VERBOSE" = "yes" ]; then
				       quiet=""
               fi
	           for file in /etc/sysctl.conf /etc/sysctl.d/*.conf ; do
				 if [ -r "$file" ] ; then
				   log_action_begin_msg "Setting kernel variables ($file)"
				   sysctl $quiet -p "$file"
				   log_action_end_msg $?
				 fi
			   done
               ;;
       stop)
               ;;
       *)
               print "Usage: /etc/init.d/procps {start|stop|restart|force-reload}" >&2
               exit 3
               ;;
esac
exit 0
