diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-05-21 19:07:17 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-05-21 19:07:39 -0400 |
commit | ce8efd06df9b3823674757f8422a582076bf1d01 (patch) | |
tree | 1d53079a68181331f76c7b5b0fb6bccac1bace63 /etc/rc | |
parent | cb88138a4e4c9c818207d03ea4f7719f7ee9c236 (diff) | |
download | pfsense-ce8efd06df9b3823674757f8422a582076bf1d01.zip pfsense-ce8efd06df9b3823674757f8422a582076bf1d01.tar.gz |
Unbreak nano since ticket #444
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |