From 9f0210f4eb66d01fd6b5411d8f8c31293f35102f Mon Sep 17 00:00:00 2001 From: "Qin, Bo" Date: Tue, 18 Mar 2014 15:52:42 +0800 Subject: [PATCH] remove redundancy code. modified: install_shell/other.sh Signed-off-by: Qin, Bo --- install_shell/other.sh | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/install_shell/other.sh b/install_shell/other.sh index 0f12016..3f3cb01 100755 --- a/install_shell/other.sh +++ b/install_shell/other.sh @@ -5,38 +5,6 @@ USER_NAME=$1 USER_HOME=$2 USER_SHELL=$3 -#revise order -grep 4.2.35 /etc/issue &> /dev/null -if [ $? = 0 ];then - rm /etc/rc.d/rcsysinit.d/S005modules - rm /etc/rc.d/rcsysinit.d/S010udev - ln -sf /etc/rc.d/init.d/modules /etc/rc.d/rcsysinit.d/S010modules - ln -sf /etc/rc.d/init.d/udev /etc/rc.d/rcsysinit.d/S005udev -fi - -#check linx sn -grep lsm_linx /etc/sysconfig/modules &> /dev/null -if [ $? != 0 ];then - echo "lsm_linx" >> /etc/sysconfig/modules -fi - -# revise /etc/rc.d/init.d/functions -sed -i '/ENTER/s/^/# &/g' /etc/rc.d/init.d/functions - - -#checkfs - -FILE=/etc/rc.d/init.d/checkfs - -egrep 'options=' $FILE | tail -n 1 | grep '\-f' -if [ $? -eq 0 ]; then - line=$(sed -n '/options=/ =' $FILE | tail -n 1) - sed -i "${line}s@-f@@" $FILE - echo "$FILE fix successful." -#else -# echo "$FILE already fixed." -# exit 0 -fi #解决从无root内核启动后,日志轮转和与时间服务器校时的cron定时任务的用户为sysadmin #解决d5000等用户家目录下.xsession-errors文件删除的问题