blob: 613f3a4f3d17316ee95a0b2465ec4145d279d081 [file] [log] [blame]
Christian Gmeiner59e890e2014-11-12 14:35:04 +01001/*
2 * cmd_fs_uuid.c -- fsuuid command
3 *
4 * Copyright (C) 2014, Bachmann electronic GmbH
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9#include <common.h>
10#include <command.h>
11#include <fs.h>
12
13static int do_fs_uuid_wrapper(cmd_tbl_t *cmdtp, int flag,
14 int argc, char * const argv[])
15{
16 return do_fs_uuid(cmdtp, flag, argc, argv, FS_TYPE_ANY);
17}
18
19U_BOOT_CMD(
20 fsuuid, 4, 1, do_fs_uuid_wrapper,
21 "Look up a filesystem UUID",
22 "<interface> <dev>:<part>\n"
23 " - print filesystem UUID\n"
24 "fsuuid <interface> <dev>:<part> <varname>\n"
25 " - set environment variable to filesystem UUID\n"
26);