V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -326,9 +326,7 @@ 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}"
|
||||||
# TODO: DEBUGGER
|
power_off 16
|
||||||
drop_bash
|
|
||||||
#power_off 16
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
@@ -344,9 +342,7 @@ 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
|
||||||
# TODO: DEBUGGER
|
power_off 3
|
||||||
drop_bash
|
|
||||||
#power_off 3
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
@@ -421,7 +417,7 @@ main() {
|
|||||||
|
|
||||||
color_echo "${RED}" "Coresecret Connection established."
|
color_echo "${RED}" "Coresecret Connection established."
|
||||||
color_echo "${RED}" "Starting Time: ${CURRENTDATE}"
|
color_echo "${RED}" "Starting Time: ${CURRENTDATE}"
|
||||||
#color_echo "${MAG}" "Integrity self-check ..."
|
color_echo "${MAG}" "Integrity self-check ..."
|
||||||
printf "%b" "${NL}"
|
printf "%b" "${NL}"
|
||||||
|
|
||||||
#verify_script
|
#verify_script
|
||||||
@@ -447,10 +443,7 @@ main() {
|
|||||||
if printf "%s" "${PASSPHRASE}" | cryptroot-unlock; then
|
if printf "%s" "${PASSPHRASE}" | cryptroot-unlock; then
|
||||||
|
|
||||||
secure_unset_pass
|
secure_unset_pass
|
||||||
# TODO: DEBUGGER
|
|
||||||
echo "Inside if printf %s '${PASSPHRASE}' | cryptroot-unlock; then"
|
|
||||||
#drop_bash
|
|
||||||
sleep 60
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user