From a92ec8cfdcf4902aa2ced650db5daca925ff4404 Mon Sep 17 00:00:00 2001 From: yellowcooln <12516003+yellowcooln@users.noreply.github.com> Date: Sat, 29 Aug 2026 22:21:23 -0400 Subject: [PATCH] feat: always enable USB passthrough, keep udev rule opt-in --- scripts/proxmox-install.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/proxmox-install.sh b/scripts/proxmox-install.sh index 9efc349..1e535d7 100644 --- a/scripts/proxmox-install.sh +++ b/scripts/proxmox-install.sh @@ -212,18 +212,14 @@ pct create "$CTID" "${CT_TEMPLATE_STORAGE}:vztmpl/${TEMPLATE_FILE}" \ msg_ok "Container created" # ── USB passthrough ─────────────────────────────────────────────────────── -if [[ "$INSTALL_CH341_UDEV" == "true" ]]; then - msg_info "Configuring USB passthrough..." - cat >> "/etc/pve/lxc/${CTID}.conf" <<'EOF' +msg_info "Configuring USB passthrough..." +cat >> "/etc/pve/lxc/${CTID}.conf" <<'EOF' -# CH341 USB passthrough for openHop Repeater +# USB passthrough for openHop Repeater lxc.cgroup2.devices.allow: c 189:* rwm lxc.mount.entry: /dev/bus/usb dev/bus/usb none bind,optional,create=dir 0 0 EOF - msg_ok "USB passthrough configured" -else - msg_info "Skipping USB passthrough (CH341 not selected)" -fi +msg_ok "USB passthrough configured" # ── Host udev rule ──────────────────────────────────────────────────────── if [[ "$INSTALL_CH341_UDEV" == "true" ]]; then