摘要:
#!/bin/bash# by wu 2012-07-28# RHEL6 unattended deployment,用于RHEL6无人值守搭建.v1.0 # 有不足的地方还请见谅#搭建yumYum_build(){ yum clean all &>/dev/null num_list=$(yum list | wc -l) yum clean all &>/dev/null if [[ $num_list < 2000 ]];then mount /dev/cdrom /mnt if [ -d /etc/yum.repos.d/bak ];then mv / 阅读全文