SVN: geninitrd/branches/devel/geninitrd
    czarny 
    czarny at pld-linux.org
       
    Sun Dec 10 00:42:53 CET 2006
    
    
  
Author: czarny
Date: Sun Dec 10 00:42:52 2006
New Revision: 8091
Modified:
   geninitrd/branches/devel/geninitrd
Log:
- it'd be nice if e newly established inint program would be executable
Modified: geninitrd/branches/devel/geninitrd
==============================================================================
--- geninitrd/branches/devel/geninitrd	(original)
+++ geninitrd/branches/devel/geninitrd	Sun Dec 10 00:42:52 2006
@@ -1498,7 +1498,7 @@
 	cat << EOF >> "$s"
 mount -t $rootFs \$root /newroot 
 init="\$(busybox awk ' /init=\// { gsub(/.*init=/,NIL,\$0); gsub(/ .*/,NIL,\$0); print \$0; }  ' /proc/cmdline )"
-if [ -z "\$init" -o ! -n "/newroot\$init" ]; then
+if [ -z "\$init" -o ! -x "/newroot\$init" ]; then
 	init=/sbin/init
 fi
 umount /proc
    
    
More information about the pld-cvs-commit
mailing list