Use nodm on mesh clients, so there's no login screen
This commit is contained in:
parent
0645f82d30
commit
849ed3ead5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue