2610.13 - Adding timeframe.

This commit is contained in:
DAProgs committed 2026-10-06 07:45:27 -04:00
1 parent d45a32b8d2
commit c929b299bf
1 file changed
+7 -12
+7 -12
View File
@@ -102,7 +102,7 @@ status_box() {
echo " ╠══════════════════════════════════════════════════════════════════════════╣" echo " ╠══════════════════════════════════════════════════════════════════════════╣"
echo " ║ Network Interface Status ║" echo " ║ Network Interface Status ║"
echo " ╠══════════════════════════════════════════════════════════════════════════╣" echo " ╠══════════════════════════════════════════════════════════════════════════╣"
echo " ║ v0.17 ║" echo " ║ v0.18 ║"
local ifaces local ifaces
mapfile -t ifaces < <(get_interfaces) mapfile -t ifaces < <(get_interfaces)
@@ -593,7 +593,7 @@ toggle_timeframe() {
EVENTS_HOURS=1 EVENTS_HOURS=1
fi fi
echo "$EVENTS_HOURS" > "$EVENTS_WINDOW_FILE" echo "$EVENTS_HOURS" > "$EVENTS_WINDOW_FILE"
MENU_ITEMS[2]="Timeframe: ${EVENTS_HOURS}h" MENU_ITEMS[1]="Timeframe: ${EVENTS_HOURS}h"
} }
main_menu() { main_menu() {
@@ -606,34 +606,29 @@ main_menu() {
0) 0)
;; # Refresh — just redraw ;; # Refresh — just redraw
1) 1)
show_log_viewer
echo ""
read -rp "Press Enter to continue..."
;;
2)
toggle_timeframe toggle_timeframe
;; ;;
3) 2)
if select_interface; then if select_interface; then
set_static "$SELECTED_IFACE" set_static "$SELECTED_IFACE"
fi fi
echo "" echo ""
read -rp "Press Enter to continue..." read -rp "Press Enter to continue..."
;; ;;
4) 3)
if select_interface; then if select_interface; then
set_dhcp "$SELECTED_IFACE" set_dhcp "$SELECTED_IFACE"
fi fi
echo "" echo ""
read -rp "Press Enter to continue..." read -rp "Press Enter to continue..."
;; ;;
5) 4)
shell_access shell_access
;; ;;
6) 5)
reboot_confirm reboot_confirm
;; ;;
7) 6)
run_update run_update
;; ;;
esac esac