summaryrefslogtreecommitdiffstats
path: root/files/50gdm-nokms-disable-wayland.xsetup
diff options
context:
space:
mode:
Diffstat (limited to 'files/50gdm-nokms-disable-wayland.xsetup')
-rwxr-xr-xfiles/50gdm-nokms-disable-wayland.xsetup6
1 files changed, 6 insertions, 0 deletions
diff --git a/files/50gdm-nokms-disable-wayland.xsetup b/files/50gdm-nokms-disable-wayland.xsetup
new file mode 100755
index 0000000..6232353
--- /dev/null
+++ b/files/50gdm-nokms-disable-wayland.xsetup
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ -e /run/mgalive -a -f /etc/X11/gdm/custom.conf ]; then
+ if /bin/grep -q nokmsboot /proc/cmdline; then
+ sed -i 's/#WaylandEnable=false/WaylandEnable=false/' /etc/X11/gdm/custom.conf
+ fi
+fi