#!/bin/bash
sas_add=`./sas3flash -list |grep -i "SAS Address" |awk '{print $NF}' |sed 's/\s*//' |awk -F"-" '{print $1$2$3$4}'`
#./sas3flash -o -e 6
./sas3flash -f 3008MCTP.fw
./sas3flash -b mptsas3.rom
./sas3flash -b mpt3x64.rom
./sas3flash -o -sasadd ${sas_add}
