#!/bin/sh

echo "[clone-system] Enter."

/opt/gira/bin/do-clone-system | tee /var/log/clone.log &
pid=$!
# FIXME: Remove this script when the update indication works and waits with
#        starting the HS-App. This script skips renicing the cloning script
#        to decrease the chances of a “hangup message” being shown in android
#        during its startup.
echo "[clone-system] Waiting for do-clone-system (pid: $pid)"
wait ${pid}

echo "[clone-system] Exit."

exit 0
