diff options
author | Jonathan Bauer | 2020-02-06 14:09:01 +0100 |
---|---|---|
committer | Jonathan Bauer | 2020-02-06 14:09:01 +0100 |
commit | 35fcc5af1801155b0446ed921476a2c3671cf101 (patch) | |
tree | a7c21e629ee153a042350caecaa774356bfa8923 /core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload | |
parent | [kiosk-chromium] do not reload while user acts (diff) | |
download | mltk-35fcc5af1801155b0446ed921476a2c3671cf101.tar.gz mltk-35fcc5af1801155b0446ed921476a2c3671cf101.tar.xz mltk-35fcc5af1801155b0446ed921476a2c3671cf101.zip |
[kiosk-chromium] fix auto-reload
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-preload | 10 |
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 |