mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 13:59:40 +00:00
fix(secubox-zigbee): v2.5.7 — udev RUN+= uses lxc-device -n zigbee add, not add zigbee (#335)
The v2.5.5 udev rule called `lxc-device add zigbee /dev/%k`, but lxc-device(1) syntax is `lxc-device -n <container> add <path>` — the v2.5.5 form makes lxc-device parse `add` as the container name and exits with "Container add is not running". Confirmed on the live board during the v2.5.5 hotfix recovery: the parent agent had to fall back to manual `-n zigbee add` to push the device into the running LXC. Without this fix the hotplug branch silently no-ops — a re-plugged dongle stays invisible inside the LXC and z2m crash-loops again until an operator reboots the container. Co-authored-by: CyberMind-FR <gandalf@Gk2.net>
This commit is contained in:
parent
832141cd0a
commit
a82b8eedb7
|
|
@ -1,3 +1,15 @@
|
|||
secubox-zigbee (2.5.7-1~bookworm1) bookworm; urgency=medium
|
||||
|
||||
* lib/zigbee/install-lxc.sh: udev RUN+= now invokes
|
||||
`lxc-device -n zigbee add /dev/%k` instead of the wrong
|
||||
`lxc-device add zigbee /dev/%k` form shipped by v2.5.5. The
|
||||
v2.5.5 syntax made lxc-device parse `add` as the container name
|
||||
("Container add is not running" was the actual error seen on
|
||||
the live board), so hotplug events silently failed and a
|
||||
re-plugged dongle never landed in the running LXC.
|
||||
|
||||
-- Gerald Kerma <devel@cybermind.fr> Fri, 22 May 2026 06:05:00 +0000
|
||||
|
||||
secubox-zigbee (2.5.6-1~bookworm1) bookworm; urgency=medium
|
||||
|
||||
* lib/zigbee/install-lxc.sh: zigbee2mqtt.service gains two
|
||||
|
|
|
|||
|
|
@ -376,17 +376,17 @@ install_udev_rule() {
|
|||
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", \
|
||||
ATTRS{product}=="SONOFF Dongle Lite MG21", \
|
||||
SYMLINK+="secubox-zgb", MODE="0660", GROUP="dialout", \
|
||||
RUN+="/bin/sh -c '/usr/bin/lxc-device add zigbee /dev/%k || true'"
|
||||
RUN+="/bin/sh -c '/usr/bin/lxc-device -n zigbee add /dev/%k || true'"
|
||||
|
||||
# Sonoff Zigbee 3.0 USB Plus (CC2652P)
|
||||
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="55d4", \
|
||||
SYMLINK+="secubox-zgb", MODE="0660", GROUP="dialout", \
|
||||
RUN+="/bin/sh -c '/usr/bin/lxc-device add zigbee /dev/%k || true'"
|
||||
RUN+="/bin/sh -c '/usr/bin/lxc-device -n zigbee add /dev/%k || true'"
|
||||
|
||||
# ConBee II (fallback)
|
||||
SUBSYSTEM=="tty", ATTRS{idVendor}=="1cf1", ATTRS{idProduct}=="0030", \
|
||||
SYMLINK+="secubox-zgb", MODE="0660", GROUP="dialout", \
|
||||
RUN+="/bin/sh -c '/usr/bin/lxc-device add zigbee /dev/%k || true'"
|
||||
RUN+="/bin/sh -c '/usr/bin/lxc-device -n zigbee add /dev/%k || true'"
|
||||
|
||||
# Generic CP210x without the SONOFF descriptor — secondary symlink only
|
||||
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user