mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-16 20:29:45 +00:00
Update openwrt-vm.sh
This commit is contained in:
parent
818b7e34ab
commit
74a1bfb1a3
1 changed files with 6 additions and 1 deletions
|
@ -604,10 +604,15 @@ for _ in {1..30}; do
|
|||
send_line_to_vm "uci set network.lan.netmask=${LAN_NETMASK}"
|
||||
send_line_to_vm "uci commit"
|
||||
send_line_to_vm "halt"
|
||||
sleep 2
|
||||
done
|
||||
msg_ok "Network interfaces configured in OpenWrt"
|
||||
|
||||
msg_info "Waiting for OpenWrt to shut down..."
|
||||
until qm status "$VMID" | grep -q "stopped"; do
|
||||
sleep 2
|
||||
done
|
||||
msg_ok "OpenWrt has shut down"
|
||||
|
||||
msg_info "Adding bridge interfaces on Proxmox side"
|
||||
qm set "$VMID" \
|
||||
-net0 virtio,bridge="${LAN_BRG}",macaddr="${LAN_MAC}${LAN_VLAN}${MTU}" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue