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

. /opt/openslx/config

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