arch-maride-flavour/steps/10-wipe.step
2017-07-31 00:05:02 +02:00

13 lines
246 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
exit $?
else
exit 1
fi