[Fai-commit] r5776 - trunk/lib

Waldemar Brodkorb wbx-guest at alioth.debian.org
Fri Apr 23 20:55:25 UTC 2010


Author: wbx-guest
Date: 2010-04-23 20:55:24 +0000 (Fri, 23 Apr 2010)
New Revision: 5776

Modified:
   trunk/lib/subroutines
Log:
revert accidentally committed change for cmdline parsing, sorry guys

Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines	2010-04-23 20:46:41 UTC (rev 5775)
+++ trunk/lib/subroutines	2010-04-23 20:55:24 UTC (rev 5776)
@@ -633,22 +633,18 @@
     echo -n "Kernel currently running: "
     uname -rsmo
     echo -n "Kernel parameters: "; cat /proc/cmdline
-    eval "cmdline=($(</proc/cmdline))"
-    echo "Kernel parameters: ${cmdline[*]}"
-    for word in "${cmdline[@]}"; do
-        case $word in
-            FAI_CLASSES=*)
-		word=${word#*=}
-		eval "classes=(${word//,/ })"
-		printf '%s\n' "${classes[@]}" >>/tmp/l
+    for word in $(cat /proc/cmdline) ; do
+	case $word in
+	    FAI_CLASSES=*)
+                eval "$word"
+		for class in ${FAI_CLASSES//,/ }; do
+		    echo $class >>/tmp/l
+		done
 		unset FAI_CLASSES
 		;;
 
 	    [a-zA-Z]*=*)
-		varname=${word%%=*}
-		word=${word#*=}
-		eval $varname=\$word
-		eval export $varname
+		eval "export $word"
 		;;
 	esac
     done




More information about the Fai-commit mailing list