update network repair

This commit is contained in:
MacRimi
2025-07-08 22:58:00 +02:00
parent 77c950bc1e
commit c9d172d301
2 changed files with 897 additions and 0 deletions

View File

@@ -717,6 +717,29 @@ guided_configuration_cleanup() {
--msgbox "$verification_report" 18 70
}
restart_network_service() {
if dialog --title "$(translate "Restart Network")" \
--yesno "$(translate "This will restart the network service and may cause a brief disconnection. Continue?")" 10 60; then
show_proxmenux_logo
msg_info "$(translate "Restarting network service...")"
if systemctl restart networking; then
msg_ok "$(translate "Network service restarted successfully")"
else
msg_error "$(translate "Failed to restart network service")"
msg_warn "$(translate "If you lose connectivity, you can restore from backup using the console.")"
fi
msg_success "$(translate "Press ENTER to continue...")"
read -r
fi
}
# ==========================================================
# Configuration Management
show_network_config() {