Ver código fonte

Fix mesh client desktop background

Bob Mottram 8 anos atrás
pai
commit
a57c207750
1 arquivos alterados com 7 adições e 11 exclusões
  1. 7
    11
      src/freedombone-image-customise

+ 7
- 11
src/freedombone-image-customise Ver arquivo

288
  |    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-'
288
  |    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-'
289
  '    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --'
289
  '    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --'
290
 
290
 
291
-                   Initial setup process
291
+				   Initial setup process
292
 
292
 
293
-          Please enter your password a second time.
293
+		  Please enter your password a second time.
294
 "
294
 "
295
 	sudo su
295
 	sudo su
296
 fi
296
 fi
1104
 
1104
 
1105
 		echo '[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx' >> $rootdir/home/$MY_USERNAME/.profile
1105
 		echo '[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx' >> $rootdir/home/$MY_USERNAME/.profile
1106
 
1106
 
1107
-        chroot "$rootdir" systemctl set-default multi-user.target
1107
+		chroot "$rootdir" systemctl set-default multi-user.target
1108
 
1108
 
1109
 		# change the desktop background
1109
 		# change the desktop background
1110
 		if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1110
 		if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1111
 			if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1111
 			if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1112
-				if [ -d $rootdir/usr/share/plymouth/themes/joy ]; then
1113
-					cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/plymouth/themes/joy/background.png
1114
-				fi
1115
-				if [ -d $rootdir/usr/share/plymouth/themes/lines ]; then
1116
-					cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/plymouth/themes/lines/background.png
1117
-				fi
1118
-				if [ -d $rootdir/usr/share/plymouth/themes/spacefun ]; then
1119
-					cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/plymouth/themes/spacefun/background.png
1112
+				if [ -d $rootdir/usr/share/images/desktop-base ]; then
1113
+					cp $MESH_DESKTOP_BACKGROUND_IMAGE $rootdir/usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png
1114
+					chroot "$rootdir" rm /usr/share/images/desktop-base/desktop-background
1115
+					chroot "$rootdir" ln -s /usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png /usr/share/images/desktop-base/desktop-background
1120
 				fi
1116
 				fi
1121
 			fi
1117
 			fi
1122
 		fi
1118
 		fi