From 25a9c17f558e74adc5ccaf9f55cd04e09ffb25a8 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 26 Mar 2008 15:12:11 +0000 Subject: [PATCH] fbsplash: cosmetic comment and Config text fixes; rename .ini -> .cfg --- miscutils/Config.in | 14 ++++++------ miscutils/fbsplash.c | 27 +++++++----------------- miscutils/{fbsplash.ini => fbsplash.cfg} | 0 3 files changed, 15 insertions(+), 26 deletions(-) rename miscutils/{fbsplash.ini => fbsplash.cfg} (100%) diff --git a/miscutils/Config.in b/miscutils/Config.in index 04c9a0c54..e740a4451 100644 --- a/miscutils/Config.in +++ b/miscutils/Config.in @@ -209,14 +209,14 @@ config FBSPLASH Can be used during boot phase of an embedded device. ~2kb. Usage: - use kernel option 'vga=xxx' or otherwise enable fb device. - - put somewhere the fbsplash.ini file and image in .ppm format. + - put somewhere fbsplash.cfg file and an image in .ppm format. - $ setsid fbsplash [params] & - -c: hide cursor - -d /dev/fbN: framebuffer device (if not /dev/fb0) - -s path_of_image_file - -i path_of_ini_file - -f path_of_fifo (can be "-" for stdin) - - if you want to run applet only in presence of kernel parameter: + -c: hide cursor + -d /dev/fbN: framebuffer device (if not /dev/fb0) + -s path_to_image_file (can be "-" for stdin) + -i path_to_cfg_file + -f path_to_fifo (can be "-" for stdin) + - if you want to run it only in presence of kernel parameter: grep -q "fbsplash=on" , * * @@ -9,34 +7,25 @@ * * Usage: * - use kernel option 'vga=xxx' or otherwise enable framebuffer device. - * - put somewhere the fbsplash.ini file and image in .ppm format. - * - configure applet by editing .ini file. + * - put somewhere fbsplash.cfg file and an image in .ppm format. * - run applet: $ setsid fbsplash [params] & * -c: hide cursor * -d /dev/fbN: framebuffer device (if not /dev/fb0) - * -s path_of_image_file - * -i path_of_ini_file - * -f path_of_fifo (can be "-" for stdin) - * - if you want to run the applet only in presence of a kernel parameter - * (for example fbsplash=on), type: + * -s path_to_image_file (can be "-" for stdin) + * -i path_to_cfg_file + * -f path_to_fifo (can be "-" for stdin) + * - if you want to run it only in presence of a kernel parameter + * (for example fbsplash=on), use: * grep -q "fbsplash=on" - * \version 1.0.0 - * \date 07/03/2008 - */ - #include "libbb.h" #include -/* If you want logging messages on /tmp/fbsplash_log... */ +/* If you want logging messages on /tmp/fbsplash.log... */ #define DEBUG 0 #define BYTES_PER_PIXEL 2 @@ -355,7 +344,7 @@ static void init(const char *ini_filename) case 7: G.bdebug_messages = val; if (G.bdebug_messages) - G.logfile_fd = xfopen("/tmp/fbsplash_log", "w"); + G.logfile_fd = xfopen("/tmp/fbsplash.log", "w"); break; #endif err: diff --git a/miscutils/fbsplash.ini b/miscutils/fbsplash.cfg similarity index 100% rename from miscutils/fbsplash.ini rename to miscutils/fbsplash.cfg -- 2.25.1