#!/bin/bash
set -euo pipefail

RUSTDESK="$(command -v rustdesk || true)"
if [ -z "$RUSTDESK" ]; then
  echo "Install the downloaded Linux package first." >&2
  exit 1
fi

sudo "$RUSTDESK" --config "host=remote.DeloitteKoreaDiscovery.com,key=bzOQNmSf4YS+i6J2WTl9myp6KNxE3Qrt+bQvnFsSsnY=,relay=remote.DeloitteKoreaDiscovery.com,allow-auto-update=N,"
echo "Remote support configuration applied. Start RustDesk from the application menu."
