aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index ce58b139..103471c5 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -254,7 +254,9 @@ if [ -x /sbin/isapnp -a -f /etc/isapnp.conf ]; then
fi
# Remount the root filesystem read-write.
-action "Remounting root filesystem in read-write mode: " mount -n -o remount,rw /
+state=`awk '/(^\/dev\/root| \/ )/ { print $4 }' /proc/mounts`
+[ "$state" != "rw" ] && \
+ action "Remounting root filesystem in read-write mode: " mount -n -o remount,rw /
# Clear mtab
>/etc/mtab