Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
smartpublicbuilding
openhab-pb-stack
Commits
3bc446e7
Commit
3bc446e7
authored
Mar 11, 2019
by
dobli
Browse files
Adjusted device scripts to detect and mount serial devices better
parent
0443ab81
Changes
2
Hide whitespace changes
Inline
Side-by-side
template_configs/devices/docker-devices.rules
View file @
3bc446e7
# IDs of USB devices may be found with lsusb
# Aeotec Z-Stick Gen5
SUBSYSTEM
S
=="
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"
template_configs/devices/enable-swarm-device
View file @
3bc446e7
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment