parent
b5367338d2
commit
36d5996318
@ -1,15 +1,23 @@ |
|||||||
yablochkov-keyboard-reader (0.1.0) release; urgency=low |
yablochkov-keyboard-reader (0.1.2) release; urgency=low |
||||||
|
|
||||||
|
[ Alexander Terekhin ] |
||||||
|
* Ignore space option |
||||||
|
* Add udev rules |
||||||
|
|
||||||
|
-- Alexander Terekhin <alex@bearns> Sun, 20 Feb 2024 13:03:00 +0300 |
||||||
|
|
||||||
[ Alexander Terekhin ] |
yablochkov-keyboard-reader (0.1.1) release; urgency=low |
||||||
* Initial version |
|
||||||
|
|
||||||
-- Alexander Terekhin <alex@bearns> Sun, 03 Dec 2023 17:01:00 +0600 |
[ Alexander Terekhin ] |
||||||
|
* Group chars before sending |
||||||
|
* Docker build bugfixes |
||||||
|
* Change serial to model |
||||||
|
|
||||||
yablochkov-keyboard-reader (0.1.1) release; urgency=low |
-- Alexander Terekhin <alex@bearns> Sun, 04 Dec 2023 12:35:00 +0300 |
||||||
|
|
||||||
|
yablochkov-keyboard-reader (0.1.0) release; urgency=low |
||||||
|
|
||||||
[ Alexander Terekhin ] |
[ Alexander Terekhin ] |
||||||
* Group chars before sending |
* Initial version |
||||||
* Docker build bugfixes |
|
||||||
* Change serial to model |
|
||||||
|
|
||||||
-- Alexander Terekhin <alex@bearns> Sun, 04 Dec 2023 12:35:00 +0300 |
-- Alexander Terekhin <alex@bearns> Sun, 03 Dec 2023 17:01:00 +0600 |
@ -1,2 +1,2 @@ |
|||||||
chmod +x /opt/ocppc/bin/keyboard-reader |
chmod +x /opt/ocppc/bin/keyboard-reader |
||||||
systemctl enable keyboard-reader --now |
udevadm control --reload |
@ -1,15 +1,17 @@ |
|||||||
[Unit] |
[Unit] |
||||||
Description=Yablochkov keyboard reader |
Description=Yablochkov keyboard reader %i |
||||||
|
|
||||||
[Service] |
[Service] |
||||||
StandardOutput=syslog |
StandardOutput=syslog |
||||||
StandardError=syslog |
StandardError=syslog |
||||||
SyslogIdentifier=keyboard-reader |
SyslogIdentifier=keyboard-reader-%i |
||||||
WorkingDirectory=/opt/ocppc |
WorkingDirectory=/opt/ocppc |
||||||
EnvironmentFile=/opt/conf/configuration_vars.env |
EnvironmentFile=/opt/conf/configuration_vars.env |
||||||
EnvironmentFile=/opt/conf/configuration_vars_model.env |
EnvironmentFile=/opt/conf/configuration_vars_model.env |
||||||
EnvironmentFile=/opt/conf/configuration_vars_personal.env |
EnvironmentFile=/opt/conf/configuration_vars_personal.env |
||||||
ExecStart=/opt/ocppc/bin/keyboard-reader --model=TWN4_B1.64_NKF4.64_STD2.04 |
ExecStart=/opt/ocppc/bin/keyboard-reader --nospace --dev=/dev/input/event%i |
||||||
|
Restart=on-failure |
||||||
|
RestartSec=5s |
||||||
User=debian |
User=debian |
||||||
Group=input |
Group=input |
||||||
ExecStop=/bin/kill -TERM $MAINPID |
ExecStop=/bin/kill -TERM $MAINPID |
@ -0,0 +1,5 @@ |
|||||||
|
ACTION=="add", SUBSYSTEM=="input", ENV{ID_TYPE}=="hid", ENV{ID_MODEL}=="ACR1281_Dual_Reader", RUN+="/usr/bin/systemctl start keyboard-reader@%n" |
||||||
|
ACTION=="add", SUBSYSTEM=="input", ENV{ID_TYPE}=="hid", ENV{ID_MODEL}=="TWN4_B1.64_NKF4.64_STD2.04", RUN+="/usr/bin/systemctl start keyboard-reader@%n" |
||||||
|
|
||||||
|
ACTION=="remove", SUBSYSTEM=="input", ENV{ID_TYPE}=="hid", ENV{ID_MODEL}=="ACR1281_Dual_Reader", RUN+="/usr/bin/systemctl stop keyboard-reader@%n" |
||||||
|
ACTION=="remove", SUBSYSTEM=="input", ENV{ID_TYPE}=="hid", ENV{ID_MODEL}=="TWN4_B1.64_NKF4.64_STD2.04", RUN+="/usr/bin/systemctl stop keyboard-reader@%n" |
Loading…
Reference in new issue