Use nodm on mesh clients, so there's no login screen

This commit is contained in:
Bob Mottram 2016-06-24 09:59:38 +01:00
parent 0645f82d30
commit 849ed3ead5
1 changed files with 9 additions and 1 deletions

View File

@ -1077,9 +1077,15 @@ function configure_user_interface {
fi
# desktop
chroot "$rootdir" apt-get -y install mate-desktop-environment lightdm
chroot "$rootdir" apt-get -y install mate-desktop-environment
if [[ $VARIANT != "usb" ]]; then
# log in automatically
chroot "$rootdir" apt-get -y install nodm
echo 'NODM_ENABLED=true' > /etc/default/nodm
echo "NODM_USER=$MY_USERNAME" >> /etc/default/nodm
# change the desktop background
if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
if [ -d $rootdir/usr/share/plymouth/themes/joy ]; then
@ -1093,6 +1099,8 @@ function configure_user_interface {
fi
fi
fi
else
chroot "$rootdir" apt-get -y install lightdm
fi
# browser