summaryrefslogtreecommitdiff
path: root/meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/wait-until-mctp-connection-done
blob: 9273851161885017ae20e025bf55a3c562cb739d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

EID=$(($1*10))

while true; do
    busctl get-property xyz.openbmc_project.MCTP /xyz/openbmc_project/mctp/1/"$EID" xyz.openbmc_project.MCTP.Endpoint EID
    isMctpConnect=$?;
    echo $isMctpConnect
    if [ $isMctpConnect -eq 0 ]; then
        break;
    fi
    sleep 5;
done