<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>On 1/31/19 4:34 PM, Paul Menzel wrote:<br>
</p>
<blockquote type="cite"
cite="mid:85cb36bf-368b-c70a-adfc-8eba73cabb39@molgen.mpg.de">
<pre class="moz-quote-pre" wrap="">numbered differently</pre>
</blockquote>
<p><br>
</p>
<p>You can try to do this via tty symlinked udev rule, something
along the lines of</p>
<p># /etc/udev/rules.d/99-consistent-serial.rules</p>
<p># Generic sample ( replace $FOO with something relevant to your
environment )<br>
</p>
<p>SUBSYSTEM=="tty", KERNEL=="tty$FOO", SYMLINK+="ttySLAB0",
TAG+="systemd", ENV{SYSTEMD_WANTS}+="tty-logger.service"<br>
</p>
<p># Vendir spesific, ( replace idVendor,idProduct,serial for with
something relevant to your environment</p>
<p>SUBSYSTEM=="tty", ATTRS{idVendor}=="VI123",
ATTRS{idProduct}=="IDP123", ATTRS{serial}=="12345",
SYMLINK+="ttySLAB0" TAG+="systemd", ENV{SYSTEMD_WANTS}+="tty-logger.service"<br>
</p>
<p>Remove any [Install] section from the tty-logger type service
unit.</p>
<p>You might not even need the type service unit ( omitt
TAG+="systemd", ENV{SYSTEMD_WANTS}+="tty-logger.service" ) if you
create a journal snippet along these lines...</p>
<p>/etc/systemd/journald.conf.d/ttyslab0.conf<br>
</p>
<p>[Journal]<br>
ForwardToConsole=yes<br>
TTYPath=/dev/ttySLAB0<br>
MaxLevelConsole=<your choice></p>
<p>Regards</p>
<p> JBG<br>
</p>
<code style="font-size: 9.52px !important; line-height: 14.28px
!important;"></code>
</body>
</html>