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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-09-03 14:41:58 +02:00
parent fb02f40be1
commit c0b2f673a0

View File

@@ -268,9 +268,6 @@ read_passphrase() {
echo "NUKE_ENABLED: ${NUKE_ENABLED}" echo "NUKE_ENABLED: ${NUKE_ENABLED}"
echo "NUKE_HASH : ${NUKE_HASH}" echo "NUKE_HASH : ${NUKE_HASH}"
# BusyBox mkpasswd invocation (no options):
CAND="$(mkpasswd "${PASSPHRASE}" "${_FULL_SALT}")" || CAND=""
### NUKE pre-check ### NUKE pre-check
if [[ "${NUKE_ENABLED,,}" == "true" ]]; then if [[ "${NUKE_ENABLED,,}" == "true" ]]; then
@@ -326,7 +323,8 @@ trap_on_err() {
trap - ERR INT TERM trap - ERR INT TERM
stty echo stty echo
print_scr_err "${errcode}" "${errscrt}" "${errline}" "${errfunc}" "${errcmmd}" print_scr_err "${errcode}" "${errscrt}" "${errline}" "${errfunc}" "${errcmmd}"
power_off 16 drop_bash
#power_off 16
} }
####################################### #######################################
@@ -342,7 +340,8 @@ trap_on_term() {
stty echo stty echo
printf "%s" "${NL}" printf "%s" "${NL}"
color_echo "${RED}" "✘ Received termination signal. System Power Off in 3 seconds." >&2 color_echo "${RED}" "✘ Received termination signal. System Power Off in 3 seconds." >&2
power_off 3 drop_bash
#power_off 3
} }
####################################### #######################################
@@ -443,8 +442,8 @@ main() {
if printf "%s" "${PASSPHRASE}" | cryptroot-unlock; then if printf "%s" "${PASSPHRASE}" | cryptroot-unlock; then
secure_unset_pass secure_unset_pass
drop_bash
exit 0 #exit 0
else else