From edac98d26ee29bbdc3e16be8ecec5cbfff80482f Mon Sep 17 00:00:00 2001 From: pancake Date: Fri, 7 Mar 2008 00:20:45 +0100 Subject: * Shift doc/faq to doc/faq2 * Add 'doc/faq' with most used commands * -e can be used with -u to specify the path to extract the files * Remove gui directory - GUI source is in src/gui - Incrusted inside the build and install targets (ignores build and install errors) --- src/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index fe23392..5ce17ae 100644 --- a/src/main.c +++ b/src/main.c @@ -75,7 +75,7 @@ void show_usage() printf(" -f set the given RD flags (see '-f help')\n"); printf(" -i show device information (let standby mode)\n"); printf(" -l list supported usb device ids\n"); - printf(" -p [[p%%]file] piece-of-firmware %% file-where-this-piece-is\n"); + printf(" -p [[p%%]file] piece-of-firmware %% file-where-this-piece-is\n"); printf(" -r [0|1] disable/enable R&D mode\n"); printf(" -R reboot the omap board\n"); printf(" -U [0|1] disable/enable the usb host mode\n"); @@ -87,7 +87,7 @@ void show_usage() printf(" -s [serial] serial port console (minicom like terminal)\n"); printf(" -h show this help message\n"); printf(" -C [/dev/mtd] check bad blocks on mtd\n"); - printf(" -e [path] dump and extract pieces to path\n"); + printf(" -e [path] dump/extract pieces to path\n"); printf(" -F [fiasco] flash a fiasco firmware image\n"); printf(" -H [file] calculate hash for file\n"); printf(" -I [piece] identify a firmware piece\n"); @@ -328,6 +328,8 @@ int main(int argc, char **argv) } if (unpack) { + if (reverseto) + chdir(reverseto); unpack_fiasco_image(fiasco_image); return 0; } -- cgit v1.2.3