diff options
author | Stefan Seyfried | 2009-11-21 18:32:19 +0100 |
---|---|---|
committer | Denys Vlasenko | 2009-11-21 18:32:19 +0100 |
commit | d095fd4d95fd6241847f01e4fd674bc177310c33 (patch) | |
tree | a860321d92a028c5e54f227497d9605fe1dc5a10 /include | |
parent | 102ff76c845746f9c0bae65299176a0a49f85260 (diff) | |
download | busybox-d095fd4d95fd6241847f01e4fd674bc177310c33.zip busybox-d095fd4d95fd6241847f01e4fd674bc177310c33.tar.gz |
flashcp: new applet by Stefan Seyfried. +900 bytes
Signed-off-by: Stefan Seyfried <stefan.seyfried@googlemail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/usage.h | 11 |
2 files changed, 10 insertions, 2 deletions
diff --git a/include/applets.h b/include/applets.h index 60fb8bf..15ccf9c 100644 --- a/include/applets.h +++ b/include/applets.h @@ -160,6 +160,7 @@ IF_FINDFS(APPLET(findfs, _BB_DIR_SBIN, _BB_SUID_MAYBE)) IF_FLASH_ERASEALL(APPLET(flash_eraseall, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) IF_FLASH_LOCK(APPLET_ODDNAME(flash_lock, flash_lock_unlock, _BB_DIR_USR_SBIN, _BB_SUID_DROP, flash_lock)) IF_FLASH_UNLOCK(APPLET_ODDNAME(flash_unlock, flash_lock_unlock, _BB_DIR_USR_SBIN, _BB_SUID_DROP, flash_unlock)) +IF_FLASHCP(APPLET(flashcp, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) IF_FOLD(APPLET(fold, _BB_DIR_USR_BIN, _BB_SUID_DROP)) IF_FREE(APPLET(free, _BB_DIR_USR_BIN, _BB_SUID_DROP)) IF_FREERAMDISK(APPLET(freeramdisk, _BB_DIR_SBIN, _BB_SUID_DROP)) diff --git a/include/usage.h b/include/usage.h index 0d01577..eae9650 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1286,8 +1286,15 @@ #define flash_eraseall_full_usage "\n\n" \ "Erase an MTD device\n" \ "\nOptions:" \ - "\n -j format the device for jffs2" \ - "\n -q don't display progress messages" + "\n -j Format the device for jffs2" \ + "\n -q Don't display progress messages" \ + +#define flashcp_trivial_usage \ + "-v FILE MTD_DEVICE" +#define flashcp_full_usage "\n\n" \ + "Copy an image to MTD device\n" \ + "\nOptions:" \ + "\n -v Verbose" \ #define fold_trivial_usage \ "[-bs] [-w WIDTH] [FILE]" |