modify set bonding function

new file:   install_shell/set_bonding.sh
	deleted:    install_shell/set_network.sh
	modified:   setup.sh

	Signed-off-by: swei <swei@linx-info.com>
This commit is contained in:
root
2014-03-19 15:53:35 +08:00
parent 182bbfdace
commit 42a3c37c19
3 changed files with 11 additions and 67 deletions

9
install_shell/set_bonding.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
IF_CONFIG="/etc/sysconfig/network-devices"
echo 'bonding mode=6 max_bonds=1' >> /etc/sysconfig/modules
cp ${IF_CONFIG}/bond-examples/ifcfg-bond0 ${IF_CONFIG}
cp ${IF_CONFIG}/bond-examples/ifcfg-eth0 ${IF_CONFIG}
cp ${IF_CONFIG}/bond-examples/ifcfg-eth1 ${IF_CONFIG}