diff options
author | Simon Rettberg | 2019-11-12 14:43:08 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-11-12 14:43:08 +0100 |
commit | e788c553ce17596d88cc3c16680adcfe4d763c57 (patch) | |
tree | 5f2c1576948989edf36321540df72326bd149faa /core/modules/kiosk-slxbrowser/data | |
parent | [vmware15] garantee single accept(OVF)?EULA lines (diff) | |
download | mltk-e788c553ce17596d88cc3c16680adcfe4d763c57.tar.gz mltk-e788c553ce17596d88cc3c16680adcfe4d763c57.tar.xz mltk-e788c553ce17596d88cc3c16680adcfe4d763c57.zip |
[kiosk-*] Support SLX_BROWSER, add precheck for browser binary
SLX_BROWSER is is space separated list of keywords. They are globbed
within the kiosk-launch.d directory, so specifying
SLX_BROWSER='chromium firefox'
would first look for any file named *chromium* and source it, and if
that fails for any file named *firefox*.
If everything fails or the variable is empty, any file in that directory
will be sourced.
Diffstat (limited to 'core/modules/kiosk-slxbrowser/data')
-rw-r--r-- | core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser | 4 |
1 files changed, 3 insertions, 1 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 index 26fd6459..6d844b97 100644 --- 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 @@ -1,6 +1,8 @@ -#!/bin/ash +#!/bin/bash # ^ sourced! +command -v slxbrowser || return 0 + export PATH=$PATH:/opt/openslx/sbin:/opt/openslx/bin OPTS= |