]> git.ipfire.org Git - thirdparty/u-boot.git/blame - cmd/fs_uuid.c
w1: identify devices with w1-eeprom uclass
[thirdparty/u-boot.git] / cmd / fs_uuid.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
59e890ef
CG
2/*
3 * cmd_fs_uuid.c -- fsuuid command
4 *
5 * Copyright (C) 2014, Bachmann electronic GmbH
59e890ef
CG
6 */
7
8#include <common.h>
9#include <command.h>
10#include <fs.h>
11
12static int do_fs_uuid_wrapper(cmd_tbl_t *cmdtp, int flag,
13 int argc, char * const argv[])
14{
15 return do_fs_uuid(cmdtp, flag, argc, argv, FS_TYPE_ANY);
16}
17
18U_BOOT_CMD(
19 fsuuid, 4, 1, do_fs_uuid_wrapper,
20 "Look up a filesystem UUID",
21 "<interface> <dev>:<part>\n"
22 " - print filesystem UUID\n"
23 "fsuuid <interface> <dev>:<part> <varname>\n"
24 " - set environment variable to filesystem UUID\n"
25);