summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-11-20 19:06:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-11-20 19:06:43 +0000
commit581daddc91602ba8a6c7e138d7a581950fae43b2 (patch)
tree4322c8a7054ccaa9b805d5511060913d5c374add /etc/rc
parent3e0896d5bc4343128192db5caab7ef17aa689c51 (diff)
downloadpfsense-581daddc91602ba8a6c7e138d7a581950fae43b2.zip
pfsense-581daddc91602ba8a6c7e138d7a581950fae43b2.tar.gz
Run fsck -fy instead of fsck -y
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index 1391927..6c29501 100755
--- a/etc/rc
+++ b/etc/rc
@@ -47,7 +47,7 @@ echo -n "Mounting filesystems..."
# Mount /. If it fails run a fsck.
if [ ! "$PLATFORM" = "cdrom" ] ; then
- /sbin/mount -uw / || (/sbin/fsck -y; /sbin/mount -uw /)
+ /sbin/mount -uw / || (/sbin/fsck -fy; /sbin/mount -uw /)
# If /conf is a directory, convert it to a symlink
# to /cf/conf
@@ -58,10 +58,10 @@ if [ ! "$PLATFORM" = "cdrom" ] ; then
fi
# Check to see if a compact flash mountpoint exists
-# If it fails to mount then run a fsck -y
+# If it fails to mount then run a fsck -fy
if grep -q cf /etc/fstab; then
/sbin/mount -uw /cf || \
- (/sbin/umount /cf; /sbin/fsck -y /cf; /sbin/mount -w /cf)
+ (/sbin/umount /cf; /sbin/fsck -fy /cf; /sbin/mount -w /cf)
fi
if [ "$PLATFORM" = "cdrom" ] ; then
OpenPOWER on IntegriCloud