Author: glen
Date: Mon Apr 16 17:34:53 2012
New Revision: 12547

Modified:
   geninitrd/trunk/geninitrd
Log:
make it easy to save initrd debug output to file

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd   (original)
+++ geninitrd/trunk/geninitrd   Mon Apr 16 17:34:53 2012
@@ -80,7 +80,7 @@
 }
 
 debug() {
-       [ -n "$verbose" ] && msg "$*" >&2
+       [ -n "$verbose" ] && msg "$*" >&3
 }
 
 # aborts program abnormally
@@ -1063,6 +1063,7 @@
                ;;
        -v)
                verbose=-v
+               exec 3>&1
                ;;
        --compress)
                COMPRESS=$2
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to