d8c3bb52644c821a0fdfb90e29d0454527474b61
3 # Copyright (C) 2013 Christian Babeux <christian.babeux@efficios.com>
5 # SPDX-License-Identifier: GPL-2.0-only
8 CORE_PATTERN_PATH
="/proc/sys/kernel/core_pattern"
9 CORE_HANDLER_PATH
="$(dirname $(readlink -e $0))/handler.sh"
10 CORE_PATTERN
="$(cat ${CORE_PATTERN_PATH})"
12 echo ${CORE_PATTERN} > core_pattern.bkp
14 echo "Backup current core_pattern in core_pattern.bkp."
16 echo "|$CORE_HANDLER_PATH %p %u %g %s %t %h %e %E %c" > ${CORE_PATTERN_PATH}
20 echo "Successfully installed core_pattern."
22 echo "Installation of core_pattern failed."
This page took 0.060592 seconds and 5 git commands to generate.