Skip to content

Commit

Permalink
add wb-uart udev rules for wb85x (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdromanov authored Aug 7, 2024
1 parent b6f1bb0 commit f9072f1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions configs/usr/share/wb-configs/udev/99-wb-uart.rules.wb85x
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
KERNEL=="ttyS0", SUBSYSTEM=="tty", SYMLINK+="ttyCONSOLE", GROUP="tty"
KERNEL=="ttyS1", SUBSYSTEM=="tty", SYMLINK+="ttyRS485-2", GROUP="dialout"
KERNEL=="ttyS2", SUBSYSTEM=="tty", SYMLINK+="ttyRS485-1", GROUP="dialout"

KERNEL=="ttyS4", SUBSYSTEM=="tty", SYMLINK+="ttyMOD3", GROUP="dialout"
KERNEL=="ttyS5", SUBSYSTEM=="tty", SYMLINK+="ttyMOD4", GROUP="dialout"
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
wb-configs (3.28.0) stable; urgency=medium

* add wb-uart udev rules for wb85x

-- Vladimir Romanov <[email protected]> Wed, 07 Aug 2024 12:02:01 +0300

wb-configs (3.27.1) stable; urgency=medium

* nginx: check for broken symlinks in /etc/nginx/sites-enabled
Expand Down
5 changes: 4 additions & 1 deletion debian/wb-configs.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ install_rules() {
ucf --debconf-ok "$RULES_DIR/$1.rules.$2" "$RULES_DST_DIR/$1.rules"
}

if of_machine_match "wirenboard,wirenboard-84x"; then
if of_machine_match "wirenboard,wirenboard-85x"; then
install_rules 99-wb-uart wb85x
install_rules 99-wb-ethernet wb8xx
elif of_machine_match "wirenboard,wirenboard-84x"; then
install_rules 99-wb-uart wb84x
install_rules 99-wb-ethernet wb8xx
elif of_machine_match "wirenboard,wirenboard-720"; then
Expand Down

0 comments on commit f9072f1

Please sign in to comment.