r4174 - trunk/bootscripts/lfs/init.d

nathan at linuxfromscratch.org nathan at linuxfromscratch.org
Wed Sep 15 22:23:26 PDT 2004


Author: nathan
Date: 2004-09-15 23:23:24 -0600 (Wed, 15 Sep 2004)
New Revision: 4174

Modified:
   trunk/bootscripts/lfs/init.d/functions
Log:
Fixed problems with functions file

Modified: trunk/bootscripts/lfs/init.d/functions
===================================================================
--- trunk/bootscripts/lfs/init.d/functions	2004-09-16 04:56:35 UTC (rev 4173)
+++ trunk/bootscripts/lfs/init.d/functions	2004-09-16 05:23:24 UTC (rev 4174)
@@ -20,7 +20,10 @@
 PIDFILE=""
 
 ## Screen Dimentions
-if [ -z "$COLUMNS" ]; then COLUMNS=$(stty size); COLUMNS=${COLUMNS##*}; fi
+if [ -z "$COLUMNS" ]; then
+	COLUMNS=$(stty size)
+	COLUMNS=${COLUMNS##* }
+fi
 # When using remote connections, such as a serial port, stty size returns 0
 if [ "$COLUMNS" = "0" ]; then COLUMNS=80; fi
 # Measurements for positioning result messages
@@ -58,7 +61,7 @@
 
 echo_failure()
 {
-	echo -e "${CURS_UP}""${SET_COL}""${BRACKET}""[""${FAILED}""FAILED""${BRACKET}""]""${NORMAL}"
+	echo -e "${CURS_UP}""${SET_COL}""${BRACKET}""[""${FAILURE}""FAILED""${BRACKET}""]""${NORMAL}"
 }
 
 echo_warning()
@@ -251,7 +254,7 @@
 		if [ "${nopid}" = "0" ]; then
 			failure=0
 
-			if [ -n "${PIDFILE}" -a -e "${PIDFILE}"]; then
+			if [ -n "${PIDFILE}" -a -e "${PIDFILE}" ]; then
 				rm -f "${PIDFILE}"
 			fi
 




More information about the lfs-book mailing list