Author: dj
Date: 2005-09-11 00:30:45 -0600 (Sun, 11 Sep 2005)
New Revision: 6833
Modified:
trunk/bootscripts/contrib/enhanced/init.d/functions
Log:
Cleaned up comments per Bernard Leak's suggestions.
Modified: trunk/bootscripts/contrib/enhanced/init.d/functions
===================================================================
--- trunk/bootscripts/contrib/enhanced/init.d/functions 2005-09-11 06:30:34 UTC
(rev 6832)
+++ trunk/bootscripts/contrib/enhanced/init.d/functions 2005-09-11 06:30:45 UTC
(rev 6833)
@@ -25,7 +25,7 @@
# Number of seconds between STOPSIG and FALLBACK when stopping processes
KILLDELAY="3"
-## Screen Dimentions
+## Screen Dimensions
# Find current screen size
if [ -z "${COLUMNS}" ]; then
COLUMNS=$(stty size)
@@ -41,7 +41,7 @@
COL=$((${COLUMNS} - 8))
WCOL=$((${COL} - 2))
-## Set Cursur Position Commands, used via echo -e
+## Set Cursor Position Commands, used via echo -e
SET_COL="\\033[${COL}G" # at the $COL char
SET_WCOL="\\033[${WCOL}G" # at the $WCOL char
CURS_UP="\\033[1A\\033[0G" # Up one line, at the 0'th char
@@ -50,7 +50,7 @@
# Please consult `man console_codes for more information
# under the "ECMA-48 Set Graphics Rendition" section
#
-# Warning, when switching from a 8bit to a 9bit font,
+# Warning: when switching from a 8bit to a 9bit font,
# the linux console will reinterpret the bold (1;) to
# the top 256 glyphs of the 9bit font. This does
# not affect framebuffer consoles
@@ -260,7 +260,7 @@
boot_log "\n\n${i} failed and exited with a return value of
${error_value}."
boot_mesg_flush
boot_mesg -n "FAILURE:\n\nYou should not be reading this error
message.\n\n" ${FAILURE}
- boot_mesg -n " It means that an unforseen error took"
+ boot_mesg -n " It means that an unforeseen error took"
boot_mesg -n " place in ${i}, which exited with a return value of"
boot_mesg " ${error_value}.\n"
boot_mesg_flush
@@ -319,7 +319,7 @@
;;
warning)
- # Leave this extra case in becasue old scripts
+ # Leave this extra case in because old scripts
# may call it this way.
case "${2}" in
running)
@@ -421,7 +421,8 @@
#
# Outputs: return 0 - Success, pid's in stdout
# return 1 - Program is dead, pidfile exists
-# return 2 - Invalid of excessive arguments, warning in stdout
+# return 2 - Invalid or excessive number of arguments,
+# warning in stdout
# return 3 - Program is not running
#
# Dependencies: pidof, echo, head
@@ -534,14 +535,15 @@
# args, arguments to pass to specified program
#
# Outputs: return 0 - Success
-# return 2 - Invalid of excessive arguments, warning in stdout
+# return 2 - Invalid of excessive number of arguments,
+# warning in stdout
# return 4 - Program or service status is unknown
#
# Dependencies: nice
#
# Todo: LSB says this should be called start_daemon
# LSB does not say that it should call evaluate_retval
-# It checks for PIDFILE, which is depreciated.
+# It checks for PIDFILE, which is deprecated.
# Will be removed after BLFS 6.0
# loadproc returns 0 if program is already running, not LSB compliant
#
@@ -627,13 +629,14 @@
# signal, send this signal to pathname
#
# Outputs: return 0 - Success
-# return 2 - Invalid of excessive arguments, warning in stdout
+# return 2 - Invalid of excessive number of arguments,
+# warning in stdout
# return 4 - Unknown Status
#
# Dependencies: kill
#
# Todo: LSB does not say that it should call evaluate_retval
-# It checks for PIDFILE, which is depreciated.
+# It checks for PIDFILE, which is deprecated.
# Will be removed after BLFS 6.0
#
#*******************************************************************************
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page