117bf796dSDelphine CC Chiu#!/bin/bash 217bf796dSDelphine CC Chiu 317bf796dSDelphine CC ChiuEID=$(($1*10)) 4eb0e473fSDelphine CC Chiucount=0 517bf796dSDelphine CC Chiu 6eb0e473fSDelphine CC Chiuwhile [ $count -lt 12 ]; do 7*3229ff18SThu Nguyen busctl get-property au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/networks/1/endpoints/"$EID" xyz.openbmc_project.MCTP.Endpoint EID 817bf796dSDelphine CC Chiu isMctpConnect=$?; 917bf796dSDelphine CC Chiu echo $isMctpConnect 1017bf796dSDelphine CC Chiu if [ $isMctpConnect -eq 0 ]; then 11f7f393bdSEric Yang echo "MCTP ETD $EID connection successfully." 12b752bf12SEric Yang sleep 20 13eb0e473fSDelphine CC Chiu exit 0; 1417bf796dSDelphine CC Chiu fi 15f7f393bdSEric Yang echo "MCTP EID $EID not connection yet." 1617bf796dSDelphine CC Chiu sleep 5; 17eb0e473fSDelphine CC Chiu count=$((count + 1)) 1817bf796dSDelphine CC Chiudone 19eb0e473fSDelphine CC Chiu 20f7f393bdSEric Yangecho "timeout waiting for MCTP EID $EID connection." 21eb0e473fSDelphine CC Chiuexit 1 22