mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-21 23:54:22 +01:00
Fix creation of /dev/ttyZigbee
on blowhole
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
1ee9ad4862
commit
0ca5e9e4aa
|
@ -103,6 +103,7 @@ in
|
||||||
devPath =
|
devPath =
|
||||||
"/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_4c004e9c53c9eb118a9f8b4f1d69213e-if00-port0";
|
"/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_4c004e9c53c9eb118a9f8b4f1d69213e-if00-port0";
|
||||||
zigbeeScript = pkgs.writeShellScript "zigbeeScript" ''
|
zigbeeScript = pkgs.writeShellScript "zigbeeScript" ''
|
||||||
|
touch /dev/ttyZigbee
|
||||||
${pkgs.lib.getExe' pkgs.utillinux "mount"} --bind \
|
${pkgs.lib.getExe' pkgs.utillinux "mount"} --bind \
|
||||||
"$(${pkgs.lib.getExe' pkgs.coreutils "readlink"} -f "${devPath}")" \
|
"$(${pkgs.lib.getExe' pkgs.coreutils "readlink"} -f "${devPath}")" \
|
||||||
/dev/ttyZigbee
|
/dev/ttyZigbee
|
||||||
|
|
Loading…
Reference in a new issue