浏览代码

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

Bob Mottram 8 年前
父节点
当前提交
849ed3ead5
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9
    1
      src/freedombone-image-customise

+ 9
- 1
src/freedombone-image-customise 查看文件

1077
 	fi
1077
 	fi
1078
 
1078
 
1079
 	# desktop
1079
 	# desktop
1080
-	chroot "$rootdir" apt-get -y install mate-desktop-environment lightdm
1080
+	chroot "$rootdir" apt-get -y install mate-desktop-environment
1081
 
1081
 
1082
 	if [[ $VARIANT != "usb" ]]; then
1082
 	if [[ $VARIANT != "usb" ]]; then
1083
+		# log in automatically
1084
+		chroot "$rootdir" apt-get -y install nodm
1085
+		echo 'NODM_ENABLED=true' > /etc/default/nodm
1086
+		echo "NODM_USER=$MY_USERNAME" >> /etc/default/nodm
1087
+
1088
+		# change the desktop background
1083
 		if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1089
 		if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1084
 			if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1090
 			if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1085
 				if [ -d $rootdir/usr/share/plymouth/themes/joy ]; then
1091
 				if [ -d $rootdir/usr/share/plymouth/themes/joy ]; then
1093
 				fi
1099
 				fi
1094
 			fi
1100
 			fi
1095
 		fi
1101
 		fi
1102
+	else
1103
+		chroot "$rootdir" apt-get -y install lightdm
1096
 	fi
1104
 	fi
1097
 
1105
 
1098
 	# browser
1106
 	# browser