mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 10:24:49 +00:00
cmd: fs: Add generic rm implementation
Add generic implementation of the 'rm' command to delete files from filesystems using the generic filesystem API. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
52227015c5
commit
fa4c9826e2
1 changed files with 14 additions and 0 deletions
14
cmd/fs.c
14
cmd/fs.c
|
@ -99,6 +99,20 @@ U_BOOT_CMD(
|
|||
" device type 'interface' instance 'dev'."
|
||||
);
|
||||
|
||||
static int do_rm_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
return do_rm(cmdtp, flag, argc, argv, FS_TYPE_ANY);
|
||||
}
|
||||
|
||||
U_BOOT_CMD(
|
||||
rm, 4, 1, do_rm_wrapper,
|
||||
"delete a file",
|
||||
"<interface> [<dev[:part]>] <filename>\n"
|
||||
" - delete a file with the name 'filename' on\n"
|
||||
" device type 'interface' instance 'dev'."
|
||||
);
|
||||
|
||||
static int do_fstype_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue