b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

ftp的客户端软件 Linux环境一键自动化安装oracle软件的构想(附she(4)

电脑杂谈  发布时间:2018-01-22 22:07:04  来源:网络整理

VERSION1=`sed -n 1p /etc/issue|awk BEGIN{OFS=""} {print $1,$2,$7}`

VERSION2=`sed -n 1p /etc/issue|awk BEGIN{OFS=""} {print $1,$2,$7}|awk -F. {print $1}`

elif [ -e "/etc/SuSE-release" ] ; then

VERSION1=`sed /^$/d /etc/issue|awk BEGIN{OFS=""} {print $3,$7,$8}`

VERSION2=`sed /^$/d /etc/issue|awk BEGIN{OFS=""} {print $3,$7}`

elif [ -e "/etc/centos-release" ] ; then

VERSION1=`sed -n 1p /etc/issue|awk BEGIN{OFS=""} {print $1,$2,$7}`

VERSION2=`sed -n 1p /etc/issue|awk BEGIN{OFS=""} {print $1,$2,$7}|awk -F. {print $1}`

fi

#VALUE=`/usr/bin/getconf LONG_BIT`

OSDIGIT=`/bin/uname -m`

YUM=`which yum`

P_YUM="/etc/yum.repos.d/"

#-----------------------------------------------------------------------------------------------

# Download yum client configure file

if [ -d $P_YUM ] ; then

mv $P_YUM /etc/yum.repos.d.bak

mkdir -p $P_YUM

fi

/usr/bin/wget -N -q -P $P_YUM $1/rhelrepo/$VERSION2.repo \

|| errorExit Failed to download the yum client files,Please manually configure!

/bin/sed -i s/RedHat/$VERSION1\_$OSDIGIT/g $P_YUM$VERSION2.repo \

|| errorExit Replace the files is not successful,Please manually configure!

if [ -f $P_YUM$VERSION2.repo ]; then

displayheader "Successfully configured yum client, please continue"


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/bofangqi/article-62078-4.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...