summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-18 05:40:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-18 05:40:54 +0000
commit98546a74bb4865e282e5967f84b38424a9bcdfb0 (patch)
tree3a327243d08850cd32da5f3ab77b5c1bc7ec100a /etc/rc
parenta816bacf8b8b2b59b4ede56fbf06ca84af954006 (diff)
downloadpfsense-98546a74bb4865e282e5967f84b38424a9bcdfb0.zip
pfsense-98546a74bb4865e282e5967f84b38424a9bcdfb0.tar.gz
* Do not mkdir savecore on cdrom platform
* Do not run savecore on cdrom platform
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 076f0dc..50f8f50 100755
--- a/etc/rc
+++ b/etc/rc
@@ -44,8 +44,10 @@ fi
/sbin/conscontrol mute off
-/bin/mkdir -p /usr/savecore 2>/dev/null
-/sbin/savecore /usr/savecore $SWAPDEVICE
+if [ ! "$PLATFORM" = "cdrom" ]; then
+ /bin/mkdir -p /usr/savecore 2>/dev/null
+ /sbin/savecore /usr/savecore $SWAPDEVICE
+fi
# Repair symlinks if they are broken
if [ ! -L /etc/hosts ]; then
OpenPOWER on IntegriCloud