aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2019-08-06 17:52:42 +0200
committerMichael Buesch <m@bues.ch>2019-08-06 18:33:12 +0200
commit1e6d9641751723ed982d323b2e6fa1dd9a63f7b6 (patch)
treeab267860e8f938542cd2d2f7931636a63edccce8
parentfb5f8eaeabbc7bc64e978be61363798c7094e97a (diff)
downloadawlsim-1e6d9641751723ed982d323b2e6fa1dd9a63f7b6.tar.xz
awlsim-1e6d9641751723ed982d323b2e6fa1dd9a63f7b6.zip
pilc: Create ttyS0 link via udev rule
Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--pilc/deb/pilc-system/etc/udev/rules.d/99-pilc.rules1
-rw-r--r--pilc/templates/rc.local7
2 files changed, 4 insertions, 4 deletions
diff --git a/pilc/deb/pilc-system/etc/udev/rules.d/99-pilc.rules b/pilc/deb/pilc-system/etc/udev/rules.d/99-pilc.rules
new file mode 100644
index 00000000..0163c870
--- /dev/null
+++ b/pilc/deb/pilc-system/etc/udev/rules.d/99-pilc.rules
@@ -0,0 +1 @@
+KERNEL=="ttyAMA[01]", SYMLINK+="ttyS%n"
diff --git a/pilc/templates/rc.local b/pilc/templates/rc.local
index 1511e180..2cd51b96 100644
--- a/pilc/templates/rc.local
+++ b/pilc/templates/rc.local
@@ -15,9 +15,8 @@ set +e
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
export LC_ALL=C LANGUAGE=C LANG=C
-# Add /dev/ttyS0 link for convenience.
-if ! [ -e /dev/ttyS0 ]; then
- ln -s /dev/ttyAMA0 /dev/ttyS0
-fi
+
+
+
exit 0
bues.ch cgit interface