feat: always enable USB passthrough, keep udev rule opt-in

This commit is contained in:
yellowcooln committed 2026-08-29 22:21:23 -04:00
1 parent 41205b486d
commit a92ec8cfdc
1 file changed
+4 -8
+4 -8
View File
@@ -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