summaryrefslogtreecommitdiffstats
path: root/core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload
blob: 285acc86ef96c6c1f0ab38e49ab0df32047c1857 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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