Add set_resolv.sh to disable preconfig dns.

Let configure it after installation.

	new file:   install_shell/set_resolv.sh
	modified:   setup.sh

Signed-off-by: Qin, Bo <bqin@linx-info.com>
This commit is contained in:
Qin, Bo
2014-05-04 11:16:26 +08:00
parent b916d74985
commit 658948cba1
2 changed files with 25 additions and 0 deletions

22
install_shell/set_resolv.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash -
#===============================================================================
#
# FILE: set_resolv.sh
#
# USAGE: ./set_resolv.sh
#
# DESCRIPTION: comment /etc/resolv.conf, to avoid xmanager
# connect to gdm black screen in NanRuiJibao.
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Qin Bo (), bqin@linx-info.com
# COMPANY: linx-info
# COPYRIGHT: Copyright 2001-2014 Linx Technology Co.,Ltd.
# CREATED: 2014年04月29日 15时17分24秒 CST
# REVISION: ---
#===============================================================================
sed -i "/^/&# /g" /etc/resolv.conf

View File

@@ -20,6 +20,9 @@ fi
./set_bonding.sh
echo "====Set Bonding..."
echo "====Set resolv.conf..."
./set_resolv.sh
./set_ssh.sh $1 $2 $3
echo "====Set ssh...."