28 lines
		
	
	
		
			489 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			489 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| 
 | |
| 
 | |
| echo -n "Input path to ISO file (full path starting with /): "
 | |
| read iso
 | |
| echo
 | |
| echo -n "Input thumb drive device (i.e /dev/sdx): "
 | |
| read device
 | |
| echo
 | |
| echo -n "Warning: This will wipe the contents of your thumb drive 
 | |
| continue?(y/n): "
 | |
| read continue
 | |
| 
 | |
| 
 | |
| 
 | |
| if [ "$continue" = "y" ]
 | |
| then echo "Writing blocks to device, this may take several minutes..." 
 | |
| sudo dd bs=4M if=$iso of=$device
 | |
| echo "Finished writing blocks to device!"
 | |
| exit 0;
 | |
| 
 | |
| 
 | |
| elif [ "$continue" = "n" ]
 | |
| then exit 0;
 | |
| 
 | |
| fi
 |