diff options
Diffstat (limited to 'init.d.BSD/savecore')
-rwxr-xr-x | init.d.BSD/savecore | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/init.d.BSD/savecore b/init.d.BSD/savecore index 1ddb0216..4f840564 100755 --- a/init.d.BSD/savecore +++ b/init.d.BSD/savecore @@ -4,12 +4,14 @@ description="Saves a kernel dump." -depend() { +depend() +{ need checkfs before swap } -start() { +start() +{ local dump_dir=${dump_dir:-/var/crash} if ! [ -d "${dump_dir}" ]; then mkdir -p "${dump_dir}" |