summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-17 20:06:59 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-17 20:06:59 +0000
commit16469df3e430436df4d0172f07cc9f805b90311d (patch)
tree2151dbc3d485a3d0ca2f92266297f6a9c4a1ac66 /etc/rc
parent275cbd3fc4c3e783863367e83d2c4b23e25b58f2 (diff)
downloadpfsense-16469df3e430436df4d0172f07cc9f805b90311d.zip
pfsense-16469df3e430436df4d0172f07cc9f805b90311d.tar.gz
MFC latest commits
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc19
1 files changed, 13 insertions, 6 deletions
diff --git a/etc/rc b/etc/rc
index f79400e..a925fd6 100755
--- a/etc/rc
+++ b/etc/rc
@@ -34,26 +34,33 @@ if [ "$PLATFORM" = "cdrom" ]; then
/etc/rc.cdrom
fi
-if [ "$PLATFORM" = "wrap" ]; then
+if [ "$PLATFORM" = "embedded" ]; then
/etc/rc.embedded
fi
# Enable console output if its muted.
/sbin/conscontrol mute off >/dev/null
+# Mount memory file system if it exists
+/sbin/mount -a
+
# Mount /. If it fails run a fsck.
if [ ! "$PLATFORM" = "cdrom" ] ; then
- /sbin/mount -w / || /sbin/fsck -y
+ /sbin/mount -uw / || (/sbin/fsck -y && /sbin/mount -uw /)
fi
# Check to see if a compact flash mountpoint exists
# If it fails to mount then run a fsck -y
-if grep cf /etc/fstab; then
- /sbin/mount -w /cf || /sbin/fsck -y
+if grep -q cf /etc/fstab; then
+ /sbin/mount -uw /cf || (/sbin/fsck -y && /sbin/mount -uw /cf)
fi
-# Mount memory file system if it exists
-/sbin/mount -a
+# If /conf is a directory, convert it to a symlink
+# to /cf/conf
+if [ -d "/conf" ]; then
+ rm -rf /conf
+ ln -s /cf/conf /conf
+fi
if [ "$PLATFORM" = "cdrom" ] ; then
# do nothing for cdrom platform
OpenPOWER on IntegriCloud