summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-05-21 19:07:17 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-05-21 19:07:39 -0400
commitce8efd06df9b3823674757f8422a582076bf1d01 (patch)
tree1d53079a68181331f76c7b5b0fb6bccac1bace63 /etc/rc
parentcb88138a4e4c9c818207d03ea4f7719f7ee9c236 (diff)
downloadpfsense-ce8efd06df9b3823674757f8422a582076bf1d01.zip
pfsense-ce8efd06df9b3823674757f8422a582076bf1d01.tar.gz
Unbreak nano since ticket #444
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc10
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index 5b3acd3..4ccca9f 100755
--- a/etc/rc
+++ b/etc/rc
@@ -24,12 +24,16 @@ PLATFORM=`cat /etc/platform`
# Mount memory file system if it exists
echo -n "Mounting filesystems..."
-/sbin/mount -a
+/sbin/mount -rw -a
# Mount /. If it fails run a fsck.
if [ ! "$PLATFORM" = "cdrom" ] ; then
- /sbin/mount -a || (/sbin/fsck -fy; /sbin/mount -a)
-
+ if [ "$PLATFORM" = "nanobsd" ]; then
+ /sbin/mount -rw / || (/sbin/fsck -fy; /sbin/mount -rw /)
+ /sbin/mount -rw /cf || (/sbin/fsck -fy; /sbin/mount -rw /cf)
+ else
+ /sbin/mount -a || (/sbin/fsck -fy; /sbin/mount -a)
+ fi
# If /conf is a directory, convert it to a symlink
# to /cf/conf
if [ -d "/conf" ]; then
OpenPOWER on IntegriCloud