13 lines
246 B
Bash
Executable File
13 lines
246 B
Bash
Executable File
#!/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
|
|
exit $?
|
|
else
|
|
exit 1
|
|
fi
|