summaryrefslogtreecommitdiffstats
path: root/etc/rc.dumpon
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-08-25 08:08:24 -0300
committerRenato Botelho <renato@netgate.com>2015-08-25 14:49:54 -0300
commit46bc6e545a17e77202aaf01ec0cd8d5a46567525 (patch)
tree32d18dda436ec739c67c489ceb771e8629cd926f /etc/rc.dumpon
parent4d9801c2dbd2b3e54a39578ee62b93af66607227 (diff)
downloadpfsense-46bc6e545a17e77202aaf01ec0cd8d5a46567525.zip
pfsense-46bc6e545a17e77202aaf01ec0cd8d5a46567525.tar.gz
Move main pfSense content to src/
Diffstat (limited to 'etc/rc.dumpon')
-rwxr-xr-xetc/rc.dumpon30
1 files changed, 0 insertions, 30 deletions
diff --git a/etc/rc.dumpon b/etc/rc.dumpon
deleted file mode 100755
index 1ad40bb..0000000
--- a/etc/rc.dumpon
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-# Based on:
-# FreeBSD: src/etc/rc.d/dumpon,v 1.12.2.1.4.1 2010/06/14 02:09:06 kensmith Exp
-
-# dumpon
-
-dumpon_try()
-{
- if /sbin/dumpon "${1}" ; then
- # Make a symlink in devfs for savecore
- echo "Using ${1} for dump device."
- ln -fs "${1}" /dev/dumpdev
- return 0
- fi
- echo "Unable to specify $1 as a dump device."
- return 1
-}
-
-# Enable dumpdev so that savecore can see it. Enable it
-# early so a crash early in the boot process can be caught.
-#
-while read dev mp type more ; do
- [ "${type}" = "swap" ] || continue
- [ -c "${dev}" ] || continue
- dumpon_try "${dev}" && works=true
-done </etc/fstab
-if [ "${works}" != "true" ]; then
- echo "No suitable dump device was found." 1>&2
- exit
-fi \ No newline at end of file
OpenPOWER on IntegriCloud