V8.13.048.2025.10.06
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -18,7 +18,9 @@ guard_sourcing
|
||||
# PID_BOOT_SCREEN
|
||||
# PIPE_BOOT_SCREEN
|
||||
# Arguments:
|
||||
# None
|
||||
# None
|
||||
# Returns:
|
||||
# 0: on success
|
||||
#######################################
|
||||
boot_screen() {
|
||||
clear
|
||||
@@ -34,15 +36,22 @@ boot_screen() {
|
||||
< "${PIPE_BOOT_SCREEN}" &
|
||||
declare -gr PID_BOOT_SCREEN="$!"
|
||||
exec 3> "${PIPE_BOOT_SCREEN}"
|
||||
|
||||
return 0
|
||||
}
|
||||
### Prevents accidental 'unset -f'.
|
||||
# shellcheck disable=SC2034
|
||||
readonly -f boot_screen
|
||||
|
||||
#######################################
|
||||
# Boot Screen Terminal Cleaner
|
||||
# Globals:
|
||||
# boot_screen_pid
|
||||
# boot_screen_pipe
|
||||
# PID_BOOT_SCREEN
|
||||
# PIPE_BOOT_SCREEN
|
||||
# Arguments:
|
||||
# None
|
||||
# None
|
||||
# Returns:
|
||||
# 0: on success
|
||||
#######################################
|
||||
boot_screen_cleaner() {
|
||||
exec 3>&-
|
||||
@@ -51,5 +60,9 @@ boot_screen_cleaner() {
|
||||
rm -f "${PIPE_BOOT_SCREEN}"
|
||||
clean_screen
|
||||
sleep 1
|
||||
return 0
|
||||
}
|
||||
### Prevents accidental 'unset -f'.
|
||||
# shellcheck disable=SC2034
|
||||
readonly -f boot_screen_cleaner
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
|
||||
Reference in New Issue
Block a user