aboutsummaryrefslogtreecommitdiffstats
path: root/bin/abrmdcontainer/entrypoint.sh
blob: b13c681c126f61cf2318573898389fcfa020ad3e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
set -e

# Start DBUS
mkdir -p /var/run/dbus
stdbuf -oL -eL dbus-daemon --system --nofork 2>&1 1> /var/log/dbus-daemon.log &

# Start Resource Manager
hostip=$(ip route show | awk '/default/ {print $3}')
echo "Connecting to $hostip\n"
tpm2-abrmd -a $hostip -t socket