From 99bea6c770fed16154ee3ab7dfd2929af3d68e56 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 12 Dec 2000 07:55:10 +0000 Subject: don't remount r/w if it is r/w (#12097) --- rc.d/rc.sysinit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1