2013-02-12 17:09:50 -05:00
|
|
|
#!@SBINDIR@/runscript
|
2009-05-01 15:11:40 +01:00
|
|
|
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
2011-06-29 19:46:31 -04:00
|
|
|
# Released under the 2-clause BSD license.
|
2007-11-23 12:04:11 +00:00
|
|
|
|
|
|
|
description="Configures a specific kernel dump device."
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need swap
|
2012-07-02 22:04:22 -05:00
|
|
|
keyword -jail -prefix
|
2007-11-23 12:04:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
|
|
|
# Setup any user requested dump device
|
2009-04-27 07:51:18 +00:00
|
|
|
if [ -n "$dump_device" ]; then
|
|
|
|
ebegin "Activating kernel core dump device ($dump_device)"
|
2007-11-23 12:04:11 +00:00
|
|
|
dumpon ${dump_device}
|
|
|
|
eend $?
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2011-10-16 19:02:21 -04:00
|
|
|
ebegin "Deactivating kernel core dump device"
|
2007-11-23 12:04:11 +00:00
|
|
|
dumpon off
|
|
|
|
eend $?
|
|
|
|
}
|