svn commit: trunk/busybox/miscutils

vda at busybox.net vda at busybox.net
Wed Mar 26 15:12:12 UTC 2008


Author: vda
Date: 2008-03-26 08:12:11 -0700 (Wed, 26 Mar 2008)
New Revision: 21501

Log:
fbsplash: cosmetic comment and Config text fixes; rename .ini -> .cfg



Added:
   trunk/busybox/miscutils/fbsplash.cfg

Removed:
   trunk/busybox/miscutils/fbsplash.ini

Modified:
   trunk/busybox/miscutils/Config.in
   trunk/busybox/miscutils/fbsplash.c


Changeset:
Modified: trunk/busybox/miscutils/Config.in
===================================================================
--- trunk/busybox/miscutils/Config.in	2008-03-26 14:57:49 UTC (rev 21500)
+++ trunk/busybox/miscutils/Config.in	2008-03-26 15:12:11 UTC (rev 21501)
@@ -209,14 +209,14 @@
 	  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" </proc/cmdline && setsid fbsplash [params] &
 	  - commands for fifo:
 	    "NN" (ASCII decimal number) - percentage to show on progress bar

Modified: trunk/busybox/miscutils/fbsplash.c
===================================================================
--- trunk/busybox/miscutils/fbsplash.c	2008-03-26 14:57:49 UTC (rev 21500)
+++ trunk/busybox/miscutils/fbsplash.c	2008-03-26 15:12:11 UTC (rev 21501)
@@ -1,7 +1,5 @@
 /* vi: set sw=4 ts=4: */
 /*
- * splash implementation for busybox
- *
  * Copyright (C) 2008 Michele Sanges <michele.sanges at otomelara.it>,
  * <michele.sanges at gmail.it>
  *
@@ -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" </proc/cmdline && setsid fbsplash [params]
  * - commands for fifo:
  *   "NN" (ASCII decimal number) - percentage to show on progress bar.
  *   "exit" (or just close fifo) - well you guessed it.
  */
 
-/**
- * 	Splash implementation for busybox
- * \file: fbsplash.c
- * \author Michele Sanges <michele.sanges at otomelara.it> <michele.sanges at gmail.com>
- * \version 1.0.0
- * \date 07/03/2008
- */
-
 #include "libbb.h"
 #include <linux/fb.h>
 
-/* 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 @@
 		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:

Copied: trunk/busybox/miscutils/fbsplash.cfg (from rev 21500, trunk/busybox/miscutils/fbsplash.ini)
===================================================================
--- trunk/busybox/miscutils/fbsplash.cfg	                        (rev 0)
+++ trunk/busybox/miscutils/fbsplash.cfg	2008-03-26 15:12:11 UTC (rev 21501)
@@ -0,0 +1,9 @@
+# progress bar position
+BAR_LEFT=170
+BAR_TOP=300
+BAR_WIDTH=300
+BAR_HEIGHT=20
+# progress bar color
+BAR_R=80
+BAR_G=80
+BAR_B=130

Deleted: trunk/busybox/miscutils/fbsplash.ini
===================================================================
--- trunk/busybox/miscutils/fbsplash.ini	2008-03-26 14:57:49 UTC (rev 21500)
+++ trunk/busybox/miscutils/fbsplash.ini	2008-03-26 15:12:11 UTC (rev 21501)
@@ -1,9 +0,0 @@
-# progress bar position
-BAR_LEFT=170
-BAR_TOP=300
-BAR_WIDTH=300
-BAR_HEIGHT=20
-# progress bar color
-BAR_R=80
-BAR_G=80
-BAR_B=130




More information about the busybox-cvs mailing list