2303.3 update 1

This commit is contained in:
2026-03-12 23:14:35 -04:00
parent 5d3fb430dd
commit f1c5f781ec

View File

@@ -324,6 +324,28 @@ print(ipaddress.IPv4Network('0.0.0.0/$1', strict=False).prefixlen)
" 2>/dev/null || echo "24"
}
# ── reboot ───────────────────────────────────────────────────────────────────
reboot_confirm() {
clear
echo ""
echo "╔══════════════════════════════════════════════════════════════════════════╗"
echo "║ Reboot ║"
echo "╚══════════════════════════════════════════════════════════════════════════╝"
echo ""
read -rp " Are you sure you want to reboot? [y/N]: " confirm
if [[ "$confirm" =~ ^[Yy]$ ]]; then
echo ""
echo " Rebooting..."
sleep 1
reboot
else
echo " Cancelled."
echo ""
read -rp "Press Enter to continue..."
fi
}
# ── shell access ─────────────────────────────────────────────────────────────
shell_access() {
@@ -359,7 +381,7 @@ shell_access() {
# ── main menu ─────────────────────────────────────────────────────────────────
MENU_ITEMS=("Refresh" "Set Static IP" "Set DHCP" "Shell")
MENU_ITEMS=("Refresh" "Set Static IP" "Set DHCP" "Shell" "Reboot")
main_menu() {
local choice
@@ -388,6 +410,9 @@ main_menu() {
3)
shell_access
;;
4)
reboot_confirm
;;
esac
done
}