7 # BEFORE: disks savecore initrandom
13 start_cmd="dumpon_start"
14 stop_cmd="dumpon_stop"
18 if /sbin/dumpon -v "${1}" ; then
19 # Make a symlink in devfs for savecore
20 ln -fs "${1}" /dev/dumpdev
28 # Enable dumpdev so that savecore can see it. Enable it
29 # early so a crash early in the boot process can be caught.
35 dev=$(/bin/kenv -q dumpdev)
36 if [ -n "${dev}" ] ; then
40 while read dev mp type more ; do
41 [ "${type}" = "swap" ] || continue
42 [ -c "${dev}" ] || continue
43 dumpon_try "${dev}" 2>/dev/null && return 0
45 echo "No suitable dump device was found." 1>&2
49 dumpon_try "${dumpdev}"