#!/bin/bash

if_file=`ls *_BMC`
chmod +x socflash_x64
bash socflash.sh if=${if_file}
sleep 120
ipmitool raw 0x06 0x45 0x01 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
sleep 3
ipmitool lan set 1 ipsrc dhcp
sleep 3
ipmitool user set name 2 root
sleep 30
ipmitool user set password 2 ucloud.cn
