Author: glen
Date: Thu Oct 5 22:39:18 2006
New Revision: 7842
Modified:
rc-scripts/trunk/rc.d/rc.sysinit
Log:
Use simple if.
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 5 22:39:18 2006
@@ -372,8 +372,8 @@
# 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.
- rw=$(awk '$2 == "/" { if ($4 == "ro") readonly = 1} END { print
readonly ? "ro" : "rw"}' /proc/mounts)
- if [[ $rw != *rw* ]]; then
+ ro=$(awk '$2 == "/" { if ($4 == "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
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit