13 lines
		
	
	
		
			248 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			248 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| echo -n "~> Going to wipe $blockdevice. You sure? (y/N) "
 | |
| read answer
 | |
| 
 | |
| if [ "$answer" == "y" ]; then
 | |
| 	echo "~> OK. Be patient now, that could take some time..."
 | |
| 	dd if=/dev/zero of=$blockdevice status=progress
 | |
| 	return $?
 | |
| else
 | |
| 	exit 1
 | |
| fi
 |