V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-08-08 21:38:05 +02:00
parent f9ba15e1da
commit a9fab33829
19 changed files with 169 additions and 19 deletions

View File

@@ -12,6 +12,24 @@
guard_sourcing
#######################################
# Wrapper for preparing logfile inside chroot.
# Globals:
# TARGET
# Arguments:
# 1: Logfile inside chroot
# Returns:
# 0: on success
# ERR_CHROOT_LOGGER
#######################################
chroot_logger() {
declare -r var_logfile="$1"
: >| "${TARGET}${var_logfile}" || return "${ERR_CHROOT_LOGGER}"
chmod 0600 "${TARGET}${var_logfile}" || "${ERR_CHROOT_LOGGER}"
return 0
}
#######################################
# Helper Module to generate a Subnet Mask out of an IP in CCDIR Notation.
# Arguments: