Skip to content

Commit

Permalink
os: add conformation to erase userfs and secure storage
Browse files Browse the repository at this point in the history
  "9. ERASE SS"
  "10. ERASE USERFS"
  "11. ERASE ALL"
  "u. USBrule"
  "x. Exit"
==================================================
9
Warning, this will erase important data (Secure storage). Press 'y' or 'n' to continue : n

Signed-off-by: Abhishek Akkabathula <a.akkabathul@samsung.com>
  • Loading branch information
abhishek-samsung authored and jeongarmy committed Aug 25, 2022
1 parent f47e579 commit bca7d1a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions os/dbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,21 @@ function SELECT_DL
echo " \"x. Exit\""
echo ==================================================
read SELECTED_DL

if [ "${command[$SELECTED_DL - 1]}" == "ERASE SS" ]; then
echo -n "Warning, this will erase important data (Secure storage). Press 'y' or 'n' to continue : "
read PROCEED
if [ "$PROCEED" != "y" ]; then
exit 1
fi
fi
if [ "${command[$SELECTED_DL - 1]}" == "ERASE USERFS" ]; then
echo -n "Warning, this will erase important data (User data). Press 'y' or 'n' to continue : "
read PROCEED
if [ "$PROCEED" != "y" ]; then
exit 1
fi
fi
fi

for ((i=1;i<=${#command[@]};i++)); do
Expand Down

0 comments on commit bca7d1a

Please sign in to comment.