fs_uuid.c 593 B

1234567891011121314151617181920212223242526
  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. #include <common.h>
  9. #include <command.h>
  10. #include <fs.h>
  11. static int do_fs_uuid_wrapper(cmd_tbl_t *cmdtp, int flag,
  12. int argc, char * const argv[])
  13. {
  14. return do_fs_uuid(cmdtp, flag, argc, argv, FS_TYPE_ANY);
  15. }
  16. U_BOOT_CMD(
  17. fsuuid, 4, 1, do_fs_uuid_wrapper,
  18. "Look up a filesystem UUID",
  19. "<interface> <dev>:<part>\n"
  20. " - print filesystem UUID\n"
  21. "fsuuid <interface> <dev>:<part> <varname>\n"
  22. " - set environment variable to filesystem UUID\n"
  23. );