#!/usr/bin/env bash
set -euo pipefail
if command -v rustdesk >/dev/null 2>&1; then
  exec rustdesk
fi
if command -v zenity >/dev/null 2>&1; then
  zenity --info --title='BRZ Remote Support' \
    --text='The remote support client is still being installed. BRZ HealthOS will retry automatically when an internet connection is available.' || true
else
  echo 'RustDesk is not installed yet. BRZ HealthOS will retry provisioning when network is available.'
fi
