partition_setup.sh: Only copy files
This commit is contained in:
		
							parent
							
								
									40b5af925b
								
							
						
					
					
						commit
						8f7c537d71
					
				| 
						 | 
					@ -16,15 +16,15 @@ sed /tmp/1/cmdline.txt -i -e "s|root=/dev/[^ ]*|root=${part2}|"
 | 
				
			||||||
sed /tmp/2/etc/fstab -i -e "s|^.* / |${part2}  / |"
 | 
					sed /tmp/2/etc/fstab -i -e "s|^.* / |${part2}  / |"
 | 
				
			||||||
sed /tmp/2/etc/fstab -i -e "s|^.* /boot |${part1}  /boot |"
 | 
					sed /tmp/2/etc/fstab -i -e "s|^.* /boot |${part1}  /boot |"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -e /mnt/ssh ]; then
 | 
					if [ -f /mnt/ssh ]; then
 | 
				
			||||||
  cp /mnt/ssh /tmp/1/
 | 
					  cp /mnt/ssh /tmp/1/
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -e /mnt/ssh.txt ]; then
 | 
					if [ -f /mnt/ssh.txt ]; then
 | 
				
			||||||
  cp /mnt/ssh.txt /tmp/1/
 | 
					  cp /mnt/ssh.txt /tmp/1/
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -e /settings/wpa_supplicant.conf ]; then
 | 
					if [ -f /settings/wpa_supplicant.conf ]; then
 | 
				
			||||||
  cp /settings/wpa_supplicant.conf /tmp/1/
 | 
					  cp /settings/wpa_supplicant.conf /tmp/1/
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user