From 46a4d9b94f51c4f8fbf1b853470e8b68b09b32ee Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 31 Oct 2024 17:34:23 +0100 Subject: [remote-access] Add another hint regarding remote access to lightdm --- .../data/opt/openslx/system-check/hooks.d/50-remote-access | 12 ++++++++++++ .../data/opt/openslx/system-check/lang/de/slx-remote-access | 1 + .../data/opt/openslx/system-check/lang/en/slx-remote-access | 1 + .../data/opt/openslx/system-check/tags/slx-remote-access | 1 + 4 files changed, 15 insertions(+) create mode 100755 core/modules/remote-access/data/opt/openslx/system-check/hooks.d/50-remote-access create mode 100644 core/modules/remote-access/data/opt/openslx/system-check/lang/de/slx-remote-access create mode 100644 core/modules/remote-access/data/opt/openslx/system-check/lang/en/slx-remote-access create mode 100644 core/modules/remote-access/data/opt/openslx/system-check/tags/slx-remote-access (limited to 'core') diff --git a/core/modules/remote-access/data/opt/openslx/system-check/hooks.d/50-remote-access b/core/modules/remote-access/data/opt/openslx/system-check/hooks.d/50-remote-access new file mode 100755 index 00000000..7351db71 --- /dev/null +++ b/core/modules/remote-access/data/opt/openslx/system-check/hooks.d/50-remote-access @@ -0,0 +1,12 @@ +#!/bin/ash +# This file is executed in /opt/openslx/scripts/systemd-generate_warnings +# If a first parameter is given, we write to that file instead of stdout. + +. /opt/openslx/config +[ -n "$SLX_REMOTE_VNC" ] || exit 0 # Nothing to do + +if [ -n "$1" ]; then + exec >> "$1" +fi + +echo 'slx-remote-access' diff --git a/core/modules/remote-access/data/opt/openslx/system-check/lang/de/slx-remote-access b/core/modules/remote-access/data/opt/openslx/system-check/lang/de/slx-remote-access new file mode 100644 index 00000000..79c6f4d8 --- /dev/null +++ b/core/modules/remote-access/data/opt/openslx/system-check/lang/de/slx-remote-access @@ -0,0 +1 @@ +Der Rechner befindet sich im Fernzugriff. Lokale Nutzung nicht möglich. diff --git a/core/modules/remote-access/data/opt/openslx/system-check/lang/en/slx-remote-access b/core/modules/remote-access/data/opt/openslx/system-check/lang/en/slx-remote-access new file mode 100644 index 00000000..af16c1c8 --- /dev/null +++ b/core/modules/remote-access/data/opt/openslx/system-check/lang/en/slx-remote-access @@ -0,0 +1 @@ +This computer is set up for remote access. Local use not possible. diff --git a/core/modules/remote-access/data/opt/openslx/system-check/tags/slx-remote-access b/core/modules/remote-access/data/opt/openslx/system-check/tags/slx-remote-access new file mode 100644 index 00000000..d3ed38eb --- /dev/null +++ b/core/modules/remote-access/data/opt/openslx/system-check/tags/slx-remote-access @@ -0,0 +1 @@ +color="000000" -- cgit v1.2.3-55-g7522