mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add a confirmation argument to erasing the disk
This commit is contained in:
parent
1e4e9694e9
commit
a6870a617f
1 changed files with 6 additions and 0 deletions
|
|
@ -459,6 +459,12 @@ impl Repl {
|
|||
}
|
||||
},
|
||||
"baosec-init" => {
|
||||
if !matches!(args.as_slice(), [s] if s == "confirm") {
|
||||
return Err(Error::help(
|
||||
"Usage: 'baosec-init confirm'. WARNING: erases external storage!",
|
||||
));
|
||||
}
|
||||
|
||||
// this routine is used to initialize baosec products - sets the board type and
|
||||
// erases the off-chip FLASH
|
||||
use bao1x_api::{baosec::PDDB_LEN, baosec::PDDB_ORIGIN};
|
||||
|
|
|
|||
Loading…
Reference in a new issue