automatic login
This commit is contained in:
parent
ac39c27ec8
commit
d840fc68cd
|
@ -1093,10 +1093,15 @@ function configure_user_interface {
|
||||||
|
|
||||||
if [[ $VARIANT != "usb" ]]; then
|
if [[ $VARIANT != "usb" ]]; then
|
||||||
# log in automatically
|
# log in automatically
|
||||||
chroot "$rootdir" apt-get -y install nodm
|
chroot "$rootdir" apt-get -y install nodm xinit
|
||||||
echo 'NODM_ENABLED=true' > /etc/default/nodm
|
echo 'NODM_ENABLED=true' > /etc/default/nodm
|
||||||
echo "NODM_USER=$MY_USERNAME" >> /etc/default/nodm
|
echo "NODM_USER=$MY_USERNAME" >> /etc/default/nodm
|
||||||
|
|
||||||
|
chroot "$rootdir" mkdir /etc/systemd/system/getty@tty1.service.d
|
||||||
|
echo '[Service]' > $rootdir/etc/systemd/system/getty@tty1.service.d/override.conf
|
||||||
|
echo 'ExecStart=' >> $rootdir/etc/systemd/system/getty@tty1.service.d/override.conf
|
||||||
|
echo 'ExecStart=-/sbin/agetty --autologin fbone --noclear %I $TERM' >> $rootdir/etc/systemd/system/getty@tty1.service.d/override.conf
|
||||||
|
|
||||||
# change the desktop background
|
# change the desktop background
|
||||||
if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
|
if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
|
||||||
if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
|
if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
|
||||||
|
|
Loading…
Reference in New Issue