[Initng-svn] r3015 - initng/initfiles/system

svn at initng.thinktux.net svn at initng.thinktux.net
Fri Feb 17 12:16:09 CET 2006


Author: deac
Date: Fri Feb 17 12:16:09 2006
New Revision: 3015

Modified:
   initng/initfiles/system/sraid.ii
Log:
sraid: quote some vars. #452

Modified: initng/initfiles/system/sraid.ii
==============================================================================
--- initng/initfiles/system/sraid.ii	(original)
+++ initng/initfiles/system/sraid.ii	Fri Feb 17 12:16:09 2006
@@ -22,7 +22,7 @@
 			do
 				raiddev=${i##*/}
 				raidstat=`@egrep@ "^${raiddev} : active" /proc/mdstat`
-				if [ -z ${raidstat} ]
+				if [ -z "${raidstat}" ]
 				then
 					# First scan the /etc/fstab for the "noauto"-flag
 					# for this device. If found, skip the initialization
@@ -35,19 +35,19 @@
 					echo "  Trying ${raiddev}..."
 					raiddev=""
 					
-					if [ ${noauto} -gt 0 ]
+					if [ "${noauto}" -gt 0 ]
 					then
 						retval=0
 						raiddev=" (skipped)"
 					fi
-					if [ ${retval} -gt 0 -a -x @/sbin/mdadm@ ]
+					if [ "${retval}" -gt 0 -a -x "@/sbin/mdadm@" ]
 					then
 						@/sbin/mdadm@ -As "${i}" >/dev/null 2>&1
 						retval=${?}
 					fi
 					echo "${raiddev}"
 					
-					if [ ${retval} -gt 0 ]
+					if [ "${retval}" -gt 0 ]
 					then
 						rc=1
 						echo "Raid is up..."
@@ -113,7 +113,8 @@
 				echo "An error occurred during the RAID startup"
 				echo "Dropping you to a shell; the system will reboot"
 				echo "when you leave the shell."
-				echo; echo
+				echo
+				echo
 				exit 1
 			fi
 		fi


More information about the Initng-svn mailing list