mirror of https://github.com/CIRCL/Circlean
				
				
				
			remount the src key in RO without failing. Fix #1b5d4050b1c8eb2c321991197f629744db46aeb2
							parent
							
								
									71198119cf
								
							
						
					
					
						commit
						4e811d9e61
					
				| 
						 | 
				
			
			@ -7,7 +7,7 @@ if [ $# -eq 2 ]; then
 | 
			
		|||
    mount -o noexec,nosuid,nodev "${1}" "${2}"
 | 
			
		||||
    # renaming autorun.inf on the source key. As it it case insensitive, we have to do the following...
 | 
			
		||||
    ls "${2}" | grep -i autorun.inf | xargs -I {} mv "${2}"/{} "${2}"/DANGEROUS_{}_DANGEROUS || true
 | 
			
		||||
    mount -o remount,ro "${2}" || true
 | 
			
		||||
    mount -o remount,ro "${1}" "${2}"
 | 
			
		||||
    exit 0
 | 
			
		||||
else
 | 
			
		||||
    echo 'Invalid number of arguments.'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue