OpenWRT-VM: use poweroff instead of halt to properly stop VM (#13504)

This commit is contained in:
CanbiZ (MickLesk)
2026-04-03 21:38:53 +02:00
committed by GitHub
parent 3f04e49f04
commit 762d1e731e

View File

@@ -663,7 +663,7 @@ if qm status "$VMID" | grep -q "running"; then
send_line_to_vm "uci set network.lan.ipaddr=${LAN_IP_ADDR}" send_line_to_vm "uci set network.lan.ipaddr=${LAN_IP_ADDR}"
send_line_to_vm "uci set network.lan.netmask=${LAN_NETMASK}" send_line_to_vm "uci set network.lan.netmask=${LAN_NETMASK}"
send_line_to_vm "uci commit" send_line_to_vm "uci commit"
send_line_to_vm "halt" send_line_to_vm "poweroff"
msg_ok "Network interfaces configured in OpenWrt" msg_ok "Network interfaces configured in OpenWrt"
else else
msg_error "VM is not running" msg_error "VM is not running"