Initial commit

Signed-off-by: Qin Bo <bqin@linx-info.com>
This commit is contained in:
Qin Bo
2014-02-13 09:22:20 +08:00
commit 2235771f09
261 changed files with 34439 additions and 0 deletions

35
install_shell/sysctl Normal file
View File

@@ -0,0 +1,35 @@
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/sysctl
#
# Description : File uses /etc/sysctl.conf to set kernel runtime
# parameters
#
# Version : 1.2
#
#
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
case "${1}" in
start)
if [ -f "/etc/sysctl.conf" ]; then
boot_mesg "Setting kernel runtime parameters..."
cat /etc/sysctl.d/*.conf /etc/sysctl.conf | sysctl -e -p - 2> /dev/null
evaluate_retval
fi
;;
status)
sysctl -a
;;
*)
echo "Usage: ${0} {start|status}"
exit 1
;;
esac
# End $rc_base/init.d/sysctl