summaryrefslogtreecommitdiffstats
path: root/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/guest-session
blob: 3ca52dba247394ade4614792fb418601881d4175 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/ash

. /opt/openslx/config

export GUEST_SESSION=True

GUESTDIR="/opt/openslx/lightdm/autologin.d"
if [ -d "$GUESTDIR" ]; then
	for file in $GUESTDIR/*; do
		if [ -s "$file" ]; then
			. "$file" || slxlog "xsession-autologin" "Could not source $file" "$file"
		fi
	done
fi


# Normal session mode
exec "$@"
exit 0