summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-01-26 12:42:47 -0500
committerjim-p <jimp@pfsense.org>2011-01-26 12:42:47 -0500
commite5323cca19d015fbc15c53ed40be908268bb1f05 (patch)
tree508100c0388cbbe57f1c036677547c1737010a18 /etc/rc
parentee4fc984e1169a180457b3a10e011fab04fd0f31 (diff)
downloadpfsense-e5323cca19d015fbc15c53ed40be908268bb1f05.zip
pfsense-e5323cca19d015fbc15c53ed40be908268bb1f05.tar.gz
Run dumpon earlier, split dumpon/ddb from savecore and run savecore later.
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 264bc92..887e9ec 100755
--- a/etc/rc
+++ b/etc/rc
@@ -25,6 +25,12 @@ PLATFORM=`/bin/cat /etc/platform`
# Set our current version
version=`/bin/cat /etc/version`
+# Setup dumpdev/ddb/savecore"
+echo "Configuring crash dumps..."
+if [ "$PLATFORM" = "pfSense" ]; then
+ /etc/rc.dumpon
+fi
+
# Mount memory file system if it exists
echo "Mounting filesystems..."
@@ -110,9 +116,9 @@ elif [ "$PLATFORM" = "nanobsd" ] ; then
/bin/rm -rf /var/db/pkg
/bin/ln -s /root/var/db/pkg/ /var/db/pkg
else
- /etc/rc.dumpon
SWAPDEVICE=`/bin/cat /etc/fstab | /usr/bin/grep swap | /usr/bin/cut -f1`
/sbin/swapon -a 2>/dev/null >/dev/null
+ /etc/rc.savecore
fi
if [ "$PLATFORM" = "cdrom" ] ; then
OpenPOWER on IntegriCloud