SVN: geninitrd/trunk/geninitrd

glen glen at pld-linux.org
Sun Oct 28 19:10:31 CET 2007


Author: glen
Date: Sun Oct 28 19:10:31 2007
New Revision: 8894

Modified:
   geninitrd/trunk/geninitrd
Log:
- $CMDLINE available globally per /linuxrc

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd	(original)
+++ geninitrd/trunk/geninitrd	Sun Oct 28 19:10:31 2007
@@ -1241,7 +1241,8 @@
 cat > "$s" <<'EOF'
 #! /bin/sh
 mount -t proc none /proc
-if [ "$(awk ' /debuginitrd/  { print "yes"; } ' /proc/cmdline)" = "yes" ]; then
+CMDLINE="$(cat /proc/cmdline)"
+if [[ "$CMDLINE" = *debuginitrd* ]]; then
 	set -x
 fi
 umount /proc
@@ -1702,7 +1703,6 @@
 	cat << 'EOF' >> "$s"
 mount -t proc none /proc
 
-CMDLINE="$(busybox cat /proc/cmdline)"
 eval "$(busybox awk -v c="$CMDLINE" '
 BEGIN {
 	num_pattern_short = "[0-9a-f][0-9a-f][0-9a-f]";


More information about the pld-cvs-commit mailing list