mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-08-26 06:11:15 +00:00
update network repair
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user