mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-08-19 21:28:24 +08:00
grub-btrfsd: Kill process group on SIGTERM/ SIGINT
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
This commit is contained in:
2
config
2
config
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
GRUB_BTRFS_VERSION=4.12-master-2023-04-05T15:09:30+00:00
|
||||
GRUB_BTRFS_VERSION=4.12-master-2023-04-05T15:10:49+00:00
|
||||
|
||||
# Disable grub-btrfs.
|
||||
# Default: "false"
|
||||
|
||||
11
grub-btrfsd
11
grub-btrfsd
@@ -14,6 +14,17 @@ verbose=false
|
||||
syslog=false
|
||||
recursive=false
|
||||
|
||||
trap sighandler SIGINT SIGTERM
|
||||
sighandler()
|
||||
{
|
||||
trap '""' SIGINT SIGTERM
|
||||
vlog "Parent $$: Received signal SIGINT/ SIGTERM"
|
||||
kill 0
|
||||
wait
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
||||
setcolors() {
|
||||
if [ "${1}" = true ]; then
|
||||
GREEN=$'\033[0;32m'
|
||||
|
||||
Reference in New Issue
Block a user