From c389e13e1a6143fb69dbd57e4c2e5a80aa8cbf84 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sat, 13 Jul 2019 17:59:49 +0000 Subject: [PATCH] use pre.bsh --- usr/lib/security-misc/panic-on-oops | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/usr/lib/security-misc/panic-on-oops b/usr/lib/security-misc/panic-on-oops index e67ab72..7a266ed 100755 --- a/usr/lib/security-misc/panic-on-oops +++ b/usr/lib/security-misc/panic-on-oops @@ -3,5 +3,12 @@ ## Copyright (C) 2012 - 2018 ENCRYPTED SUPPORT LP ## See the file COPYING for copying conditions. +if [ -f /usr/lib/helper-scripts/pre.bsh ]; then + ## pre.bsh would `source` the following folders: + ## /etc/panic-on-oops_pre.d/*.conf + ## /usr/local/etc/panic-on-oops_pre.d/*.conf + source /usr/lib/helper-scripts/pre.bsh +fi + # Makes the kernel panic on oopses. sysctl kernel.panic_on_oops=1