2303.3 update 2

This commit is contained in:
2026-03-12 23:34:57 -04:00
parent f1c5f781ec
commit 575bb88581

View File

@@ -367,7 +367,9 @@ shell_access() {
echo "" echo ""
echo " Access granted. Type 'exit' to return to the menu." echo " Access granted. Type 'exit' to return to the menu."
echo "" echo ""
reset_colors
bash bash
set_colors
return return
else else
echo " Incorrect password.$( (( attempts > 0 )) && echo " $attempts attempt(s) remaining." || echo "" )" echo " Incorrect password.$( (( attempts > 0 )) && echo " $attempts attempt(s) remaining." || echo "" )"
@@ -417,6 +419,20 @@ main_menu() {
done done
} }
# ── terminal colors ───────────────────────────────────────────────────────────
# Dark blue background (4), yellow text (3)
set_colors() {
tput setab 4
tput setaf 3
tput clear
}
reset_colors() {
tput sgr0
tput clear
}
# ── entry point ─────────────────────────────────────────────────────────────── # ── entry point ───────────────────────────────────────────────────────────────
if [ "$EUID" -ne 0 ]; then if [ "$EUID" -ne 0 ]; then
@@ -424,4 +440,8 @@ if [ "$EUID" -ne 0 ]; then
exit 1 exit 1
fi fi
trap 'reset_colors; exit 0' EXIT
trap 'reset_colors; exit 130' INT
set_colors
main_menu main_menu