mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
cmd: fat: add fatrm command
In this patch, a new command, fatrm, is added so as to delete a file or directory. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
f8240ce95d
commit
d4b751e9f3
1 changed files with 12 additions and 0 deletions
12
cmd/fat.c
12
cmd/fat.c
|
@ -152,6 +152,18 @@ U_BOOT_CMD(
|
|||
" to 'dev' on 'interface'"
|
||||
);
|
||||
|
||||
static int do_fat_rm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
{
|
||||
return do_rm(cmdtp, flag, argc, argv, FS_TYPE_FAT);
|
||||
}
|
||||
|
||||
U_BOOT_CMD(
|
||||
fatrm, 4, 1, do_fat_rm,
|
||||
"delete a file",
|
||||
"<interface> [<dev[:part]>] <filename>\n"
|
||||
" - delete a file from 'dev' on 'interface'"
|
||||
);
|
||||
|
||||
static int do_fat_mkdir(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue