security-misc/etc/profile.d/security-misc.sh
2023-10-12 11:37:01 -04:00

16 lines
476 B
Bash
Executable File

#!/bin/sh
## Copyright (C) 2019 - 2023 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
## See the file COPYING for copying conditions.
if [ -z "$XDG_CONFIG_DIRS" ]; then
XDG_CONFIG_DIRS=/etc/xdg
fi
if ! echo "$XDG_CONFIG_DIRS" | grep --quiet /usr/share/security-misc/ ; then
export XDG_CONFIG_DIRS=/usr/share/security-misc/:$XDG_CONFIG_DIRS
fi
if [ -x /usr/libexec/security-misc/panic-on-oops ]; then
sudo --non-interactive /usr/libexec/security-misc/panic-on-oops
fi