check="n"
echo -n "6.RHEL Security Update ? [y/n] Default [n] : "
read check
if [ $check = "y" ];then
cat << EOF > /etc/yum.repos.d/update.repo
[Security_repo]
name=Security_repo
baseurl=file:///tmp/security_repo
gpgcheck=0
enable=1
EOF
yum clean all
yum update bash glibc gnutls ntp openssl -y
fi
sleep 2
rm -f /etc/yum.repos.d/update.repo
yum clean all
clear
check="n"
echo -n "7. System Rebooting ? [y/n] Default [n] : "
read check
if [ $check = "y" ];then
umount /dev/sr0
/bin/sync
/bin/sync
init 6
fi