Add wipe warning

This commit is contained in:
Joshua Boniface 2021-12-13 16:05:48 -05:00
parent a73873f764
commit d0af376e8c
1 changed files with 8 additions and 0 deletions

View File

@ -180,6 +180,14 @@ seed_config() {
echo "Invalid disk or disk not found!"
exit 1
fi
echo
echo "WARNING! All data on block device ${target_disk} will be wiped!"
echo -n "Press any key within 15 seconds to cancel... "
if read -t 15; then
exit 0
fi
echo
}
interactive_config() {