X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Ffs.c;h=db74767b7b176ee6c6a6ae5e52daeb76f64729e3;hb=ba742b839c524f7723799d750a540ad3fe70ca7f;hp=8f8f1b2bfcf108988bd4ac46d32b7a7c64380910;hpb=9c3193f8d03d4074fa6ca6b783246b97d8dc2ff5;p=oweals%2Fu-boot.git diff --git a/cmd/fs.c b/cmd/fs.c index 8f8f1b2bfc..db74767b7b 100644 --- a/cmd/fs.c +++ b/cmd/fs.c @@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. * * Inspired by cmd_ext_common.c, cmd_fat.c. - * - * SPDX-License-Identifier: GPL-2.0 */ #include @@ -72,6 +71,20 @@ U_BOOT_CMD( " device type 'interface' instance 'dev'." ) +static int do_ln_wrapper(cmd_tbl_t *cmdtp, int flag, int argc, + char * const argv[]) +{ + return do_ln(cmdtp, flag, argc, argv, FS_TYPE_ANY); +} + +U_BOOT_CMD( + ln, 5, 1, do_ln_wrapper, + "Create a symbolic link", + " target linkname\n" + " - create a symbolic link to 'target' with the name 'linkname' on\n" + " device type 'interface' instance 'dev'." +) + static int do_fstype_wrapper(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) {