mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
Update chr.sh
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
072417bf1b
commit
c5712825ba
1 changed files with 6 additions and 2 deletions
8
chr.sh
8
chr.sh
|
|
@ -64,8 +64,12 @@ EOF
|
|||
fi
|
||||
|
||||
echo "WARNING: All data on /dev/$STORAGE will be lost!"
|
||||
read -p "Do you want to continue? [Y/n]: "confirm;
|
||||
[ "$confirm" = "n" ] && echo "Operation aborted." && exit 1
|
||||
read -p "Do you want to continue? [Y/n]: " confirm
|
||||
confirm=${confirm:-Y}
|
||||
if [[ "$confirm" =~ ^[Nn]$ ]]; then
|
||||
echo "Operation aborted."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dd if=chr.img of=/dev/$STORAGE bs=4M conv=fsync
|
||||
echo "Ok, rebooting..."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue