2019-07-08 18:59:39 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-03-30 02:08:47 -04:00
|
|
|
## Copyright (C) 2019 - 2023 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
2019-07-08 18:59:39 -04:00
|
|
|
## See the file COPYING for copying conditions.
|
|
|
|
|
2023-10-12 10:40:27 -04:00
|
|
|
if [ -z "$XDG_CONFIG_DIRS" ]; then
|
|
|
|
XDG_CONFIG_DIRS=/etc/xdg
|
|
|
|
fi
|
2023-10-12 11:37:01 -04:00
|
|
|
if ! echo "$XDG_CONFIG_DIRS" | grep --quiet /usr/share/security-misc/ ; then
|
|
|
|
export XDG_CONFIG_DIRS=/usr/share/security-misc/:$XDG_CONFIG_DIRS
|
|
|
|
fi
|
2023-10-12 10:40:27 -04:00
|
|
|
|
2021-08-03 12:56:31 -04:00
|
|
|
if [ -x /usr/libexec/security-misc/panic-on-oops ]; then
|
2023-10-13 15:22:48 -04:00
|
|
|
## Hide output. Otherwise could confuse Qubes UpdatesProxy.
|
|
|
|
sudo --non-interactive /usr/libexec/security-misc/panic-on-oops 1>/dev/null 2>/dev/null
|
2019-07-08 18:59:39 -04:00
|
|
|
fi
|