mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-11-26 13:46:44 -05:00
Fix emerg-shutdown and ensure-shutdown libexec scripts, start emerg-shutdown and ensure-shutdown earlier
This commit is contained in:
parent
d1bca0204f
commit
63f2909341
9 changed files with 83 additions and 15 deletions
|
|
@ -13,8 +13,10 @@ export LC_ALL=C
|
|||
|
||||
## Read emergency shutdown key configuration
|
||||
for config_file in /etc/security-misc/emerg-shutdown/*.conf /usr/local/etc/security-misc/emerg-shutdown/*.conf; do
|
||||
bash -n "${config_file}"
|
||||
source "${config_file}"
|
||||
if [ -f "${config_file}" ]; then
|
||||
bash -n "${config_file}"
|
||||
source "${config_file}"
|
||||
fi
|
||||
done
|
||||
if [ -z "${EMERG_SHUTDOWN_KEYS}" ]; then
|
||||
## Default to Ctrl+Alt+Delete if nothing else is set
|
||||
|
|
|
|||
|
|
@ -15,8 +15,10 @@ export LC_ALL=C
|
|||
|
||||
## Read emergency shutdown key configuration
|
||||
for config_file in /etc/security-misc/emerg-shutdown/*.conf /usr/local/etc/security-misc/emerg-shutdown/*.conf; do
|
||||
bash -n "${config_file}"
|
||||
source "${config_file}"
|
||||
if [ -f "${config_file}" ]; then
|
||||
bash -n "${config_file}"
|
||||
source "${config_file}"
|
||||
fi
|
||||
done
|
||||
if [ -z "${ENSURE_SHUTDOWN_TIMEOUT}" ] \
|
||||
|| ! is_whole_number "${ENSURE_SHUTDOWN_TIMEOUT}"; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue