diff options
author | jim-p <jimp@pfsense.org> | 2011-01-26 12:42:47 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-01-26 12:42:47 -0500 |
commit | e5323cca19d015fbc15c53ed40be908268bb1f05 (patch) | |
tree | 508100c0388cbbe57f1c036677547c1737010a18 /etc/rc | |
parent | ee4fc984e1169a180457b3a10e011fab04fd0f31 (diff) | |
download | pfsense-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-x | etc/rc | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |