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

18
install_shell/set_kernel.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# Parallel computing patch
. ./check_function.sh
LIMIT_CONFIG=/etc/security/limits.conf
# set limits.conf
grep -v ^# $LIMIT_CONFIG | grep stack | grep 16384 | grep hard &>/dev/null
if [ $? -eq 1 ];then
echo "* soft stack 8192" >> $LIMIT_CONFIG
echo "* hard stack 8192" >> $LIMIT_CONFIG
elif [ $? -eq 0 ];then
exit 0
fi