summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-15 21:13:08 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-15 21:13:08 +0000
commit625dda09c1b996728caf0296d1aa702eaf8ca584 (patch)
tree0439efce4742ef8777e2e1ef7c4e1b914bba5118 /etc/rc
parentfb2abb3ac7bc8a1ea64ea43e8a70b8abe8cdbae8 (diff)
downloadpfsense-625dda09c1b996728caf0296d1aa702eaf8ca584.zip
pfsense-625dda09c1b996728caf0296d1aa702eaf8ca584.tar.gz
Do not mount / on CDROM
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index bf8d1d7..1b705a3 100755
--- a/etc/rc
+++ b/etc/rc
@@ -43,7 +43,9 @@ fi
/sbin/conscontrol mute off >/dev/null
# Mount /. If it fails run a fsck.
-/sbin/mount -w / || /sbin/fsck -y
+if [ ! "$PLATFORM" = "cdrom" ] ; then
+ /sbin/mount -w / || /sbin/fsck -y
+fi
# Check to see if a compact flash mountpoint exists
# If it fails to mount then run a fsck -y
OpenPOWER on IntegriCloud