summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-05-21 20:06:33 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-05-21 20:06:33 -0400
commit8022e257c24103c4b46f194c059c52555e97aaba (patch)
treea2af7c772f21394c5731b9ba2f5dce2e8d2e9291 /etc/rc
parent842878b5991ceafe43a67c243ba85b4c70082367 (diff)
downloadpfsense-8022e257c24103c4b46f194c059c52555e97aaba.zip
pfsense-8022e257c24103c4b46f194c059c52555e97aaba.tar.gz
Do not fsck /cf on each bootup
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 7c41c3a..18fe502 100755
--- a/etc/rc
+++ b/etc/rc
@@ -26,7 +26,7 @@ PLATFORM=`cat /etc/platform`
version=`cat /etc/version`
# Mount memory file system if it exists
-echo -n "Mounting filesystems..."
+echo "Mounting filesystems..."
if [ "$PLATFORM" = "cdrom" ]; then
/etc/rc.cdrom
@@ -65,6 +65,7 @@ fi
# Check to see if a compact flash mountpoint exists
# If it fails to mount then run a fsck -fy
if grep -q cf /etc/fstab; then
+ /sbin/mount -w /cf 2>/dev/null
/sbin/mount -uw /cf || \
(/sbin/umount /cf; /sbin/fsck -fy /cf; /sbin/mount -w /cf)
fi
OpenPOWER on IntegriCloud