home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
chilidog.highland.cc.ks.us
/
chilidog.highland.cc.ks.us.zip
/
chilidog.highland.cc.ks.us
/
backup
/
bradford.20101108.etc.tar.gz
/
bradford.20101108.etc.tar
/
etc
/
init.d
/
boot.sysctl
< prev
next >
Wrap
Text File
|
2006-04-22
|
1KB
|
55 lines
#! /bin/sh
#
# Copyright (c) 2001 SuSE GmbH Nuernberg, Germany. All rights reserved.
#
# /etc/init.d/boot.sysctl
#
### BEGIN INIT INFO
# Provides: boot.sysctl
# Required-Start: boot.ldconfig
# X-Should-Start: setserial boot.isapnp
# Required-Stop:
# Default-Start: B
# Default-Stop:
# Description: run sysctl with a given config file or create it
### END INIT INFO
. /etc/rc.status
. /etc/sysconfig/sysctl
rc_reset
case "$1" in
start)
#
# run sysctl if the config file exists
# otherwise generate it
# the values set here might be overridden by the settings
# in /etc/sysconfig/sysctl
#
if [ -x /sbin/sysctl ] ; then
if [ ! -e /etc/sysctl.conf ]; then
echo -n "Sysctl: no file /etc/sysctl.conf"
rc_failed 5
else
echo "Setting current sysctl status from /etc/sysctl.conf"
sysctl -e -p /etc/sysctl.conf
fi
rc_status -v -r
fi
;;
stop)
# skip / do nothing
;;
status)
rc_failed 4
rc_status -v
;;
*)
echo "Usage: $0 {start|stop|status}"
exit 1
;;
esac
rc_exit