summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2020-01-14 10:49:20 +0100
committerJonathan Bauer2020-01-14 10:49:20 +0100
commit1d006432e0b3461f1eda5e9f2cc806178b807d09 (patch)
tree11b18f952c7416495dc0bff01e38ba75b185e0ba
parent[lightdm*] make sure nothing wraps the greeter (diff)
downloadmltk-1d006432e0b3461f1eda5e9f2cc806178b807d09.tar.gz
mltk-1d006432e0b3461f1eda5e9f2cc806178b807d09.tar.xz
mltk-1d006432e0b3461f1eda5e9f2cc806178b807d09.zip
[kiosk-chromium] simple preloader
-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