summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-18 23:41:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-18 23:41:07 +0000
commitfaaa69420626eb642b39070cef402a19f52521a6 (patch)
treedc7caa7f418d6a203d78c7950a7a80c19a2b98c3 /etc
parent0fa30a3a10b343109ec2c57b057a1d51aa225746 (diff)
downloadpfsense-faaa69420626eb642b39070cef402a19f52521a6.zip
pfsense-faaa69420626eb642b39070cef402a19f52521a6.tar.gz
MFC fsck commits
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index ca1ba6d..67c8a51 100755
--- a/etc/rc
+++ b/etc/rc
@@ -59,7 +59,8 @@ fi
# Check to see if a compact flash mountpoint exists
# If it fails to mount then run a fsck -y
if grep -q cf /etc/fstab; then
- /sbin/mount -uw /cf || (/sbin/fsck -y; /sbin/mount -uw /cf)
+ /sbin/mount -uw /cf || \
+ (/sbin/umount /cf; /sbin/fsck -y /cf; /sbin/mount -w /cf)
fi
if [ "$PLATFORM" = "cdrom" ] ; then
OpenPOWER on IntegriCloud