diff options
| author | Jean-Jacques Hiblot <[email protected]> | 2019-02-13 12:15:26 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-04-09 20:04:03 -0400 |
| commit | aaa12157c7d22132688ae97dcb35fc37f9ae88d5 (patch) | |
| tree | 47db5d6ec45fe2ea156277afd48bf2f7b0c5e9b4 /cmd | |
| parent | 5efc0686eebc0c0daabfbfc2c403f8251b468526 (diff) | |
fs: Add a new command to create symbolic links
The command line is:
ln <interface> <dev[:part]> target linkname
Currently symbolic links are supported only in ext4 and only if the option
CMD_EXT4_WRITE is enabled.
Signed-off-by: Jean-Jacques Hiblot <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/fs.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -76,6 +76,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", + "<interface> <dev[:part]> 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[]) { |
