Christian Gmeiner | 59e890e | 2014-11-12 14:35:04 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
| 13 | static 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 | |
| 19 | U_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 | ); |