summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload13
1 files changed, 13 insertions, 0 deletions
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
new file mode 100644
index 00000000..285acc86
--- /dev/null
+++ b/core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload
@@ -0,0 +1,13 @@
+#!/bin/ash
+#
+# Simple "preload" by just reading the directory /usr/lib/chromium-browser
+
+preload() {
+ find /usr/lib/chromium-browser -type f -exec dd if={} of=/dev/null \; &
+}
+
+. /opt/openslx/config
+
+if [ "${SLX_BROWSER//chromium/}" != "$SLX_BROWSER" ]; then
+ preload &
+fi