From 3cbae955e5b5948bd4a80275fc3cb3c197c1c637 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 8 Nov 2024 16:33:06 +0100 Subject: [kiosk-chromium] Rename preload file to avoid collisions --- .../opt/openslx/scripts/systemd-setup_kiosk.d/00-preload | 12 ------------ .../scripts/systemd-setup_kiosk.d/00-preload-chromium | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload create mode 100644 core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload-chromium diff --git a/core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload b/core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload deleted file mode 100644 index 6ab47db0..00000000 --- a/core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/ash -# -# Simple "preload" by just reading the directory /usr/lib/chromium-browser -# Tested the variation loading just the linked libraries, but it does -# not bring the same startup acceleration than this trivial method... - -. /opt/openslx/config - -if [ "${SLX_BROWSER//chromium/}" != "$SLX_BROWSER" ]; then - dd if=/usr/lib/chromium-browser/chromium-browser of=/dev/null &> /dev/null & - dd if=/usr/lib/chromium/chromium of=/dev/null &> /dev/null & -fi diff --git a/core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload-chromium b/core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload-chromium new file mode 100644 index 00000000..981f3884 --- /dev/null +++ b/core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload-chromium @@ -0,0 +1,12 @@ +#!/bin/ash +# +# Simple "preload" by just reading the directory /usr/lib/chromium-browser +# Tested the variation loading just the linked libraries, but it does +# not bring the same startup acceleration than this trivial method... + +. /opt/openslx/config + +if [ "${SLX_BROWSER//chromium/}" != "$SLX_BROWSER" ]; then + dd if=/usr/lib/chromium-browser/chromium-browser of=/dev/null bs=128k &> /dev/null & + dd if=/usr/lib/chromium/chromium of=/dev/null bs=128k &> /dev/null & +fi -- cgit v1.2.3-55-g7522