Fix creation of /dev/ttyZigbee on blowhole

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2023-11-24 15:33:51 +01:00
parent 1ee9ad4862
commit 0ca5e9e4aa
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -103,6 +103,7 @@ in
devPath =
"/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_4c004e9c53c9eb118a9f8b4f1d69213e-if00-port0";
zigbeeScript = pkgs.writeShellScript "zigbeeScript" ''
touch /dev/ttyZigbee
${pkgs.lib.getExe' pkgs.utillinux "mount"} --bind \
"$(${pkgs.lib.getExe' pkgs.coreutils "readlink"} -f "${devPath}")" \
/dev/ttyZigbee