Pārlūkot izejas kodu

Mesh client boots to X

Bob Mottram 9 gadus atpakaļ
vecāks
revīzija
f95cef531d
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2
    0
      src/freedombone-image-customise

+ 2
- 0
src/freedombone-image-customise Parādīt failu

1102
 		echo 'ExecStart=' >> $rootdir/etc/systemd/system/getty@tty1.service.d/override.conf
1102
 		echo 'ExecStart=' >> $rootdir/etc/systemd/system/getty@tty1.service.d/override.conf
1103
 		echo 'ExecStart=-/sbin/agetty --autologin fbone --noclear %I $TERM' >> $rootdir/etc/systemd/system/getty@tty1.service.d/override.conf
1103
 		echo 'ExecStart=-/sbin/agetty --autologin fbone --noclear %I $TERM' >> $rootdir/etc/systemd/system/getty@tty1.service.d/override.conf
1104
 
1104
 
1105
+		echo '[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx' >> $rootdir/home/$MY_USERNAME/.profile
1106
+
1105
 		# change the desktop background
1107
 		# change the desktop background
1106
 		if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1108
 		if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1107
 			if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1109
 			if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then