summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/remove-xinit
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-hooks/remove-xinit')
-rwxr-xr-xconfig/chroot_local-hooks/remove-xinit6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/remove-xinit b/config/chroot_local-hooks/remove-xinit
new file mode 100755
index 0000000..22e14fd
--- /dev/null
+++ b/config/chroot_local-hooks/remove-xinit
@@ -0,0 +1,6 @@
+#!/bin/sh
+_X11=false
+for x in gdm gdm3 kdm lightdm lxdm nodm slim; do
+ [ -f /var/lib/dpkg/info/$x.list ] && _X11=true || :
+done
+[ "$_X11" = "true" ] && rm -vf /lib/live/config/014-xinit || :