diff --git a/Batocera/MeshCentral.md b/Batocera/MeshCentral.md new file mode 100644 index 0000000..d62c699 --- /dev/null +++ b/Batocera/MeshCentral.md @@ -0,0 +1,25 @@ +# MeshCentral + +Nachfolgend zwei **Copy-&-Paste Einzeiler** für Batocera, um den MeshAgent-Installer aus diesem Repo herunterzuladen und zu starten. + +**RAW-URL des Installers:** +`https://git.familie-berner.de/Open/Installer/raw/branch/main/Batocera/MeshCentral.sh` + +--- + +## Option 1: Interaktiv (fragt URL & Token ab) + +```bash +U=https://git.familie-berner.de/Open/Installer/raw/branch/main/Batocera/MeshCentral.sh ; (wget -qO /tmp/ima.sh "$U" || wget --no-proxy -qO /tmp/ima.sh "$U" || curl -fsSL "$U" -o /tmp/ima.sh) && sh /tmp/ima.sh +``` + +## Option 2: Non-interaktiv (URL & Token direkt mitgeben) + +```bash +U=https://git.familie-berner.de/Open/Installer/raw/branch/main/Batocera/MeshCentral.sh ; MC_URL=https://meshcentral.familie-berner.de ; MC_TOKEN='HIER-DEIN-TOKEN' ; (wget -qO /tmp/ima.sh "$U" || wget --no-proxy -qO /tmp/ima.sh "$U" || curl -fsSL "$U" -o /tmp/ima.sh) && printf '%s\n%s\n' "$MC_URL" "$MC_TOKEN" | sh /tmp/ima.sh +``` + +> **Hinweise** +> - Auf Batocera läuft man als **root** – kein `sudo` nötig. +> - Option 2 entspricht dem MeshCentral-„Einzeiler“: URL & Enrollment-Token werden direkt übergeben. +> - Das Script legt alles unter `/userdata/system/meshagent/` ab und richtet **Autostart** via `/userdata/system/custom.sh` ein. diff --git a/install-meshagent.sh b/Batocera/MeshCentral.sh similarity index 100% rename from install-meshagent.sh rename to Batocera/MeshCentral.sh