Commit 3bc446e7 authored by dobli's avatar dobli
Browse files

Adjusted device scripts to detect and mount serial devices better

parent 0443ab81
# IDs of USB devices may be found with lsusb
# Aeotec Z-Stick Gen5
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", GROUP="dialout", MODE="0666", SYMLINK+="zwave_stick"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", GROUP="dialout", MODE="0666", SYMLINK+="zwave_stick"
......@@ -16,3 +16,5 @@ if [[ -z $CID ]]; then
fi
echo "Setting permissions to access $1 for container $2"
echo "c $dmajor:$dminor rwm" > /sys/fs/cgroup/devices/docker/$CID/devices.allow
echo "Creating node inside container"
docker exec $CID mknod /dev/$1 c $dmajor $dminor -m 0666
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment