summaryrefslogtreecommitdiffstats
path: root/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/guest-account
blob: 3eb320934b8630bc178f728a854acc68d98424c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/ash
# Run as root, intended to setup the guest account
# 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).d"
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"