V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 51s
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:
@@ -268,9 +268,6 @@ read_passphrase() {
|
||||
echo "NUKE_ENABLED: ${NUKE_ENABLED}"
|
||||
echo "NUKE_HASH : ${NUKE_HASH}"
|
||||
|
||||
# BusyBox mkpasswd invocation (no options):
|
||||
CAND="$(mkpasswd "${PASSPHRASE}" "${_FULL_SALT}")" || CAND=""
|
||||
|
||||
### NUKE pre-check
|
||||
if [[ "${NUKE_ENABLED,,}" == "true" ]]; then
|
||||
|
||||
@@ -326,7 +323,8 @@ trap_on_err() {
|
||||
trap - ERR INT TERM
|
||||
stty echo
|
||||
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
|
||||
printf "%s" "${NL}"
|
||||
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
|
||||
|
||||
secure_unset_pass
|
||||
|
||||
exit 0
|
||||
drop_bash
|
||||
#exit 0
|
||||
|
||||
else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user