V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m43s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m43s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -74,7 +74,7 @@ extract_nuke_hash() {
|
||||
|
||||
for ARG in ${CMDLINE}; do
|
||||
|
||||
case "${ARG}" in
|
||||
case "${ARG,,}" in
|
||||
|
||||
nuke=*)
|
||||
NUKE_HASH="${ARG#nuke=}"
|
||||
@@ -150,7 +150,9 @@ nuke() {
|
||||
|
||||
color_echo "${RED}" "✘ Error: LUKS Device malfunction. System Power Off in 16 seconds."
|
||||
|
||||
power_off 16
|
||||
# TODO: DEBUGGER
|
||||
drop_bash
|
||||
#power_off 16
|
||||
}
|
||||
|
||||
#######################################
|
||||
@@ -299,7 +301,9 @@ trap_on_err() {
|
||||
trap - ERR INT TERM
|
||||
stty echo
|
||||
print_scr_err "${errcode}" "${errscrt}" "${errline}" "${errfunc}" "${errcmmd}"
|
||||
power_off 16
|
||||
# TODO: DEBUGGER
|
||||
drop_bash
|
||||
#power_off 16
|
||||
}
|
||||
|
||||
#######################################
|
||||
@@ -315,7 +319,9 @@ trap_on_term() {
|
||||
stty echo
|
||||
printf "%s" "${NL}"
|
||||
color_echo "${RED}" "✘ Received termination signal. System Power Off in 3 seconds." >&2
|
||||
power_off 3
|
||||
# TODO: DEBUGGER
|
||||
drop_bash
|
||||
#power_off 3
|
||||
}
|
||||
|
||||
#######################################
|
||||
@@ -346,7 +352,8 @@ verify_script() {
|
||||
gpgv --keyring /etc/keys/pubring.gpg "${sigfile}" "${hashfile}" || {
|
||||
color_echo "${RED}" "✘ Signature verification failed for: [${hashfile}]"
|
||||
color_echo "${RED}" "✘ System Power Off in 3 seconds ...."
|
||||
power_off 3
|
||||
# TODO: DEBUGGER
|
||||
#power_off 3
|
||||
}
|
||||
color_echo "${GRE}" "🔏 Verifying signature of: [${hashfile}] successful."
|
||||
|
||||
@@ -358,7 +365,8 @@ verify_script() {
|
||||
if [[ "${computed}" != "${expected}" ]]; then
|
||||
color_echo "${RED}" "✘ Recomputed hash mismatch for : [${item}]" >&2
|
||||
color_echo "${RED}" "✘ System Power Off in 3 seconds ...." >&2
|
||||
power_off 3
|
||||
# TODO: DEBUGGER
|
||||
#power_off 3
|
||||
fi
|
||||
color_echo "${GRE}" "🔢 Recomputing Hash: [${item}] successful."
|
||||
|
||||
@@ -412,7 +420,10 @@ main() {
|
||||
if printf "%s" "${PASSPHRASE}" | cryptroot-unlock; then
|
||||
|
||||
secure_unset_pass
|
||||
exit 0
|
||||
# TODO: DEBUGGER
|
||||
echo "Inside if printf %s '${PASSPHRASE}' | cryptroot-unlock; then"
|
||||
drop_bash
|
||||
#exit 0
|
||||
|
||||
else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user