Kaynağa Gözat

Move dconf command to mesh startup script

Bob Mottram 9 yıl önce
ebeveyn
işleme
e89f9bc5f5

+ 0
- 3
src/freedombone-image-customise Dosyayı Görüntüle

1153
 		mesh_client_startup_applications
1153
 		mesh_client_startup_applications
1154
 		mesh_desktop_icons
1154
 		mesh_desktop_icons
1155
 
1155
 
1156
-		# disable screen lock
1157
-		chroot "$rootdir" dconf write /org/gnome/desktop/screensaver/lock-enabled false
1158
-
1159
 		# change the desktop background
1156
 		# change the desktop background
1160
 		if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1157
 		if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1161
 			if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1158
 			if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then

+ 5
- 0
src/freedombone-image-mesh Dosyayı Görüntüle

359
 	sed -i 's|PasswordAuthentication.*|PasswordAuthentication no|g' /etc/ssh/sshd_config
359
 	sed -i 's|PasswordAuthentication.*|PasswordAuthentication no|g' /etc/ssh/sshd_config
360
 }
360
 }
361
 
361
 
362
+function disable_screen_lock {
363
+	dconf write /org/gnome/desktop/screensaver/lock-enabled false
364
+}
365
+
362
 if [ -f /root/.initial_mesh_setup ]; then
366
 if [ -f /root/.initial_mesh_setup ]; then
363
 	if [ $1 ]; then
367
 	if [ $1 ]; then
364
 		MY_USERNAME=$1
368
 		MY_USERNAME=$1
381
 	configure_toxcore
385
 	configure_toxcore
382
 	configure_zeronet
386
 	configure_zeronet
383
 	disable_password_logins
387
 	disable_password_logins
388
+	disable_screen_lock
384
 
389
 
385
 	rm /root/.initial_mesh_setup
390
 	rm /root/.initial_mesh_setup
386
 	systemctl disable mesh-setup.service
391
 	systemctl disable mesh-setup.service