From af29602e1f7d6ac12e34b75986b0b2ef2009b8ad Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Wed, 30 Dec 2015 12:32:51 +0100
Subject: reconfigure onboard-kanotix during live-build

---
 config/chroot_local-hooks/03-lightdm | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/config/chroot_local-hooks/03-lightdm b/config/chroot_local-hooks/03-lightdm
index e04babc..c9c7b45 100755
--- a/config/chroot_local-hooks/03-lightdm
+++ b/config/chroot_local-hooks/03-lightdm
@@ -1,7 +1,16 @@
 #!/bin/sh
 for file in /root/config/*; do [ -r $file ] && . $file; done
 
+
+
 if [ -x /usr/sbin/lightdm ]; then
-    # enable display of users at login prompt
-    sed -i 's/^greeter-hide-users=true/greeter-hide-users=false/' /etc/lightdm/lightdm.conf
+
+    if [ "$LB_DISTRIBUTION" = "wheezy" ]; then
+	# enable display of users at login prompt
+	sed -i 's/^greeter-hide-users=true/greeter-hide-users=false/' /etc/lightdm/lightdm.conf
+    fi
+fi
+
+if [ -x /var/lib/dpkg/info/onboard-kanotix.postinst ]; then
+    dpkg-reconfigure onboard-kanotix
 fi
-- 
cgit v1.0