summaryrefslogtreecommitdiffstats
path: root/core/modules/apply-slx-vars/data/opt/openslx/scripts/apply-slx-vars
blob: 22996a38699b7cc6fe218a009ba62c64725bc88b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/ash

. /opt/openslx/config

# Disable TTY switch
if [ "$SLX_TTY_SWITCH" = "no" ]; then
	mkdir -p /etc/X11/xorg.conf.d
	cat > /etc/X11/xorg.conf.d/50-no-tty.conf <<EOF
Section "ServerFlags"
	Option "DontVTSwitch" "true"
EndSection
EOF
fi

exit 0