summaryrefslogtreecommitdiffstats
path: root/core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload')
-rw-r--r--core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload10
1 files changed, 5 insertions, 5 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
index 285acc86..29542d22 100644
--- 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
@@ -1,13 +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 \; &
-}
+# 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
- preload &
+ (
+ find /usr/lib/chromium-browser -type f -exec dd if={} of=/dev/null \; &> /dev/null &
+ ) &
fi