diff options
author | Stefan Seyfried <stefan.seyfried@googlemail.com> | 2009-11-21 18:32:19 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-21 18:32:19 +0100 |
commit | d095fd4d95fd6241847f01e4fd674bc177310c33 (patch) | |
tree | a860321d92a028c5e54f227497d9605fe1dc5a10 /include | |
parent | 102ff76c845746f9c0bae65299176a0a49f85260 (diff) | |
download | busybox-w32-d095fd4d95fd6241847f01e4fd674bc177310c33.tar.gz busybox-w32-d095fd4d95fd6241847f01e4fd674bc177310c33.tar.bz2 busybox-w32-d095fd4d95fd6241847f01e4fd674bc177310c33.zip |
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 60fb8bf2b..15ccf9cea 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -160,6 +160,7 @@ IF_FINDFS(APPLET(findfs, _BB_DIR_SBIN, _BB_SUID_MAYBE)) | |||
160 | IF_FLASH_ERASEALL(APPLET(flash_eraseall, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) | 160 | IF_FLASH_ERASEALL(APPLET(flash_eraseall, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) |
161 | IF_FLASH_LOCK(APPLET_ODDNAME(flash_lock, flash_lock_unlock, _BB_DIR_USR_SBIN, _BB_SUID_DROP, flash_lock)) | 161 | IF_FLASH_LOCK(APPLET_ODDNAME(flash_lock, flash_lock_unlock, _BB_DIR_USR_SBIN, _BB_SUID_DROP, flash_lock)) |
162 | IF_FLASH_UNLOCK(APPLET_ODDNAME(flash_unlock, flash_lock_unlock, _BB_DIR_USR_SBIN, _BB_SUID_DROP, flash_unlock)) | 162 | IF_FLASH_UNLOCK(APPLET_ODDNAME(flash_unlock, flash_lock_unlock, _BB_DIR_USR_SBIN, _BB_SUID_DROP, flash_unlock)) |
163 | IF_FLASHCP(APPLET(flashcp, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) | ||
163 | IF_FOLD(APPLET(fold, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 164 | IF_FOLD(APPLET(fold, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
164 | IF_FREE(APPLET(free, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 165 | IF_FREE(APPLET(free, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
165 | IF_FREERAMDISK(APPLET(freeramdisk, _BB_DIR_SBIN, _BB_SUID_DROP)) | 166 | IF_FREERAMDISK(APPLET(freeramdisk, _BB_DIR_SBIN, _BB_SUID_DROP)) |
diff --git a/include/usage.h b/include/usage.h index 0d01577c7..eae9650ca 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -1286,8 +1286,15 @@ | |||
1286 | #define flash_eraseall_full_usage "\n\n" \ | 1286 | #define flash_eraseall_full_usage "\n\n" \ |
1287 | "Erase an MTD device\n" \ | 1287 | "Erase an MTD device\n" \ |
1288 | "\nOptions:" \ | 1288 | "\nOptions:" \ |
1289 | "\n -j format the device for jffs2" \ | 1289 | "\n -j Format the device for jffs2" \ |
1290 | "\n -q don't display progress messages" | 1290 | "\n -q Don't display progress messages" \ |
1291 | |||
1292 | #define flashcp_trivial_usage \ | ||
1293 | "-v FILE MTD_DEVICE" | ||
1294 | #define flashcp_full_usage "\n\n" \ | ||
1295 | "Copy an image to MTD device\n" \ | ||
1296 | "\nOptions:" \ | ||
1297 | "\n -v Verbose" \ | ||
1291 | 1298 | ||
1292 | #define fold_trivial_usage \ | 1299 | #define fold_trivial_usage \ |
1293 | "[-bs] [-w WIDTH] [FILE]" | 1300 | "[-bs] [-w WIDTH] [FILE]" |