Added display manager to example configuration

This commit is contained in:
Igor Pecovnik 2017-08-03 17:58:53 +02:00
parent 2c382cd3c3
commit 4a909dec38
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ CLEAN_LEVEL="make,debs,oldcache" # comma-separated list of clean targets: "make"
# "oldcache" = remove old cached rootfs except for the newest 6 files
DEST_LANG="en_US.UTF-8" # sl_SI.UTF-8, en_US.UTF-8
DISPLAY_MANAGER="nodm" # "nodm" = autologin, "lightdm" = standard login manager. Affect desktop targets only.
# advanced
KERNEL_KEEP_CONFIG="no" # do not overwrite kernel config before compilation

View File

@ -50,7 +50,7 @@ install_desktop ()
fi
# Choose display manager
if [[ $DISPLAY_MANAGER == yes ]]; then chroot $SDCARD /bin/bash -c "apt-get install -qq -y --no-install-recommends lightdm-gtk-greeter lightdm"; \
if [[ $DISPLAY_MANAGER == lightdm ]]; then chroot $SDCARD /bin/bash -c "apt-get install -qq -y --no-install-recommends lightdm-gtk-greeter lightdm"; \
else chroot $SDCARD /bin/bash -c "apt-get install -qq -y --no-install-recommends nodm"; fi
# Disable desktop mode autostart for now to enforce creation of normal user account