Mesh client boots to X

This commit is contained in:
Bob Mottram 2016-06-24 15:36:39 +01:00
parent d840fc68cd
commit f95cef531d
1 changed files with 2 additions and 0 deletions

View File

@ -1102,6 +1102,8 @@ function configure_user_interface {
echo 'ExecStart=' >> $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 echo 'ExecStart=-/sbin/agetty --autologin fbone --noclear %I $TERM' >> $rootdir/etc/systemd/system/getty@tty1.service.d/override.conf
echo '[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx' >> $rootdir/home/$MY_USERNAME/.profile
# 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