summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Schirottke <master@kanotix.com>2012-03-05 00:27:20 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2012-03-05 17:19:48 +0100
commit67531aca58d5eed1253cb54e422b712c23144f87 (patch)
tree1a3d1a4e2e9cf015cd0732dd68659550245d50c5
parent385fcc3ec334eb782f1cda8367946af698a70c1b (diff)
downloadkanotix-67531aca58d5eed1253cb54e422b712c23144f87.zip
kanotix-67531aca58d5eed1253cb54e422b712c23144f87.tar.gz
hotfix for live config 3: remove-xinit hook
-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 || :