SVN: rc-scripts/trunk/rc.d/rc.sysinit
    glen 
    glen at pld-linux.org
       
    Thu Oct 19 15:06:11 CEST 2006
    
    
  
Author: glen
Date: Thu Oct 19 15:06:10 2006
New Revision: 7875
Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
Fix syntax errors.
Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit	(original)
+++ rc-scripts/trunk/rc.d/rc.sysinit	Thu Oct 19 15:06:10 2006
@@ -372,7 +372,7 @@
 	# Remount the root filesystem read-write
 	# There could be multiple entries for rootfs, so if any of them is 'ro' we
 	# assume rootfs is readonly.
-	ro=$(awk '$2 == "/" { $4 ~ /(^ro$|^ro,|,ro,|,ro$)/ readonly = 1} END { print readonly ? "ro" : "rw"} ' /proc/mounts)
+	ro=$(awk '$2 == "/" && $4 ~ /(^ro$|^ro,|,ro,|,ro$)/ { readonly = 1 } END { print readonly ? "ro" : "rw"} ' /proc/mounts)
 	if [ "$ro" = "ro" ]; then
 		run_cmd "Remounting root filesystem in rw mode" mount -n -o remount,rw /
 	fi
    
    
More information about the pld-cvs-commit
mailing list