#!/bin/bash

CPWD=`cd $(dirname $0);pwd`
upd_bios(){
	if [  ! -e /usr/bin/expect ];then
		yum install expect -y
	else
		echo "expect tool is already installed"
	fi
	expect upd_bios_2.7.0.exp
	echo "sleep 10s"
	sleep 10s
}

upd_idrac(){
        if [  ! -e /usr/bin/expect ];then
                yum install expect -y
        else
                echo "expect tool is already installed"
        fi
        expect upd_idrac_2.60.60.60.exp
        echo "sleep 10s"
        sleep 10s
}
upd_idrac
