Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions debian/arduino-router/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh

systemctl enable arduino-router
systemctl enable arduino-router-serial
systemctl enable arduino-router.service
systemctl enable arduino-router-serial.service
systemctl enable arduino-router-serial.path

5 changes: 3 additions & 2 deletions debian/arduino-router/DEBIAN/prerm
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh

systemctl disable arduino-router
systemctl disable arduino-router-serial
systemctl disable arduino-router.service
systemctl disable arduino-router-serial.service
systemctl disable arduino-router-serial.path

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Watch for /dev/ttyGS0 to start arduino-router-serial

[Path]
PathExists=/dev/ttyGS0

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[Unit]
Description=Proxy for the Arduino Router Monitor to ttyGS0 serial
After=network-online.target arduino-router.service
Wants=network-online.target arduino-router.service
After=network.target arduino-router.service
Wants=network.target arduino-router.service
Requires=arduino-router.service
ConditionPathExists=/dev/ttyGS0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed, the service will start because of the path Unit


[Service]
ExecStart=/usr/bin/socat file:/dev/ttyGS0,raw,echo=0,b9600,crtscts=0 tcp:127.0.0.1:7500
Expand Down
Loading