summaryrefslogtreecommitdiff
path: root/cmd/fat.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/fat.c')
-rw-r--r--cmd/fat.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd/fat.c b/cmd/fat.c
index b685bf70a2..4b9a7eaab0 100644
--- a/cmd/fat.c
+++ b/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[])
{