From 131f16e0ec53b4e5c3b0fd50c3b604529dd1c628 Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Tue, 22 Dec 2015 12:01:53 +0100
Subject: lightdm hook

---
 config/chroot_local-hooks/03-lightdm    | 7 +++++++
 config/chroot_local-hooks/03-lxde-fixes | 2 --
 2 files changed, 7 insertions(+), 2 deletions(-)
 create mode 100755 config/chroot_local-hooks/03-lightdm

diff --git a/config/chroot_local-hooks/03-lightdm b/config/chroot_local-hooks/03-lightdm
new file mode 100755
index 0000000..e04babc
--- /dev/null
+++ b/config/chroot_local-hooks/03-lightdm
@@ -0,0 +1,7 @@
+#!/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
+fi
diff --git a/config/chroot_local-hooks/03-lxde-fixes b/config/chroot_local-hooks/03-lxde-fixes
index e94eb1b..aec69b0 100755
--- a/config/chroot_local-hooks/03-lxde-fixes
+++ b/config/chroot_local-hooks/03-lxde-fixes
@@ -4,8 +4,6 @@ for file in /root/config/*; do [ -r $file ] && . $file; done
 if [ -x /usr/bin/lxde-logout ]; then
     # dirty hack kanotix wallpaper on login-screen
     echo "background=/usr/share/images/kanotix-starrise/kanotix-starrise.png" >>/etc/lightdm/lightdm-gtk-greeter.conf
-    # enable display of users at login prompt
-    sed -i 's/^greeter-hide-users=true/greeter-hide-users=false/' /etc/lightdm/lightdm.conf
 
     # old kanotix icon in login
     if [ "$LB_DISTRIBUTION" = "wheezy" ]; then
-- 
cgit v1.0