summaryrefslogtreecommitdiffstats
path: root/core/modules/kiosk-chromium/data/opt/openslx/scripts/systemd-setup_kiosk.d/00-preload
blob: 6fbbc5ee15608b0a1101c2b8e070b7e577312d4a (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 
# 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
	(
	dd if=/usr/lib/chromium-browser/chromium-browser of=/dev/null &> /dev/null &
	) &
fi