summaryrefslogtreecommitdiffstats
path: root/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser
diff options
context:
space:
mode:
authorJonathan Bauer2019-01-04 11:12:55 +0100
committerJonathan Bauer2019-01-04 11:12:55 +0100
commitf31f6e5fca75974adb1ae8300854916512b484bb (patch)
treec11c197a7fce4dcd41d30572cdd996d47509f746 /core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser
parent[beamergui] Close stdout/err when respawning beamergui (diff)
downloadmltk-f31f6e5fca75974adb1ae8300854916512b484bb.tar.gz
mltk-f31f6e5fca75974adb1ae8300854916512b484bb.tar.xz
mltk-f31f6e5fca75974adb1ae8300854916512b484bb.zip
[kiosk*] rework and introduce kiosk mode modules
changed from slxbrowser only support to modular hook structure to support additional browser, i.e. chromium NOTE: kiosk-chromium and kiosk-netpoint only make sense with the new gen
Diffstat (limited to 'core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser')
-rw-r--r--core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser b/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser
new file mode 100644
index 00000000..5a9196c4
--- /dev/null
+++ b/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser
@@ -0,0 +1,10 @@
+#!/bin/ash
+# ^ sourced!
+
+export PATH=$PATH:/opt/openslx/sbin:/opt/openslx/bin
+
+[ -n "$SLX_BROWSER_INSECURE" ] && SLX_BROWSER_INSECURE="--insecure"
+RELOAD=
+[ -n "$SLX_BROWSER_RELOAD_SECS" ] && [ "$SLX_BROWSER_RELOAD_SECS" -gt 0 ] && RELOAD="--reload-interval $SLX_BROWSER_RELOAD_SECS"
+
+exec slxbrowser $SLX_BROWSER_INSECURE $RELOAD --fullscreen "$SLX_BROWSER_URL"