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/lightdm-greeter-bwlp | |
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/lightdm-greeter-bwlp')
-rwxr-xr-x | core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/guest-account | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/guest-account b/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/guest-account index 30a23f24..2de5343f 100755 --- a/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/guest-account +++ b/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/guest-account @@ -1,5 +1,16 @@ #!/bin/ash # Run as root, intended to setup the guest account -# and echo its name at the end. -# we use the existing demo user, so not much to do +# and echo its name, demo in our case, at the end. +# Further we allow for hooks to execute stuff here. + +( +hook_dir="$(readlink -f $0)" +if [ -d "$hook_dir" ]; then + for hook in "$hook_dir"/*; do + [ -s "$hook" ] || continue + . "$hook" || slxlog "kiosk-guest-account" "Failed to source '$hook'." + done +fi +) > /dev/null 2>&1 +# finish by echoing the guest account name echo "demo" |