#!/bin/sh

cd 64bit
service ipmi start
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
rm -f fw.log
rm -f fw_pass.txt
rm -f fw_fail.txt
chmod a+x bmcfwul
echo "y" | ./bmcfwul -f -debugmsg -l=fw.log -i=../../../../fw/243.img
sleep 20
service ipmi stop
chmod a+x up_log
./up_log b fw.log fw_pass.txt fw_fail.txt
rm -f fw.log
cd ..
