diff options
author | Jonathan Bauer | 2019-01-04 11:12:55 +0100 |
---|---|---|
committer | Jonathan Bauer | 2019-01-04 11:12:55 +0100 |
commit | f31f6e5fca75974adb1ae8300854916512b484bb (patch) | |
tree | c11c197a7fce4dcd41d30572cdd996d47509f746 /core/modules/kiosk-slxbrowser | |
parent | [beamergui] Close stdout/err when respawning beamergui (diff) | |
download | mltk-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')
3 files changed, 30 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" diff --git a/core/modules/kiosk-slxbrowser/module.build b/core/modules/kiosk-slxbrowser/module.build new file mode 100644 index 00000000..a5cbb6b6 --- /dev/null +++ b/core/modules/kiosk-slxbrowser/module.build @@ -0,0 +1,12 @@ +#!/bin/bash +fetch_source() { + : +} + +build() { + : +} + +post_copy() { + : +} diff --git a/core/modules/kiosk-slxbrowser/module.conf b/core/modules/kiosk-slxbrowser/module.conf new file mode 100644 index 00000000..c90b91dd --- /dev/null +++ b/core/modules/kiosk-slxbrowser/module.conf @@ -0,0 +1,8 @@ +#!/bin/bash +REQUIRED_MODULES=" + kiosk-common + slxbrowser +" +REQUIRED_BINARIES="" +REQUIRED_LIBRARIES="" +REQUIRED_DIRECTORIES="" |