Adding casper 1.71+debian-1.
[live-boot-grml.git] / scripts / casper-bottom / 15autologin
index 745e6ce..cdaa038 100755 (executable)
@@ -3,7 +3,7 @@
 PREREQ=""
 DESCRIPTION="Setting up automatic login..."
 
-. /scripts/functions
+. /scripts/casper-functions
 
 prereqs()
 {
@@ -27,8 +27,11 @@ else
 fi
 
 if chroot /root [ -f ${GDMCONF} ]; then
-       # true hack ! -- nohar
-    chroot /root cp /usr/share/gdm/defaults.conf /etc/gdm/gdm.conf
+    if [ "${BUILD_SYSTEM}" == "Debian" ]; then
+        # true hack ! -- nohar
+        chroot /root cp /usr/share/gdm/defaults.conf /etc/gdm/gdm.conf
+    fi
+
     # Configure GDM autologin
     chroot /root sed -i \
         -e "s/^AutomaticLoginEnable=.*\$/AutomaticLoginEnable=true/" \