From cc838e2224cb1c19d733397650aaf22b1a678766 Mon Sep 17 00:00:00 2001 From: Dejvino Date: Sun, 4 Apr 2021 22:47:36 +0000 Subject: [PATCH] Add serial settings --- README.md | 8 ++++++++ festivald.sh | 1 + 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 8d5ee84..fdf5440 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,11 @@ Internet radio daemon playing streams, controlled over serial commands. +## Install +Make the daemon run on reboot, e.g. via `crontab -e` + +``` +@reboot ~/festivald.sh > /tmp/festivald.log 2>&1 +``` + + diff --git a/festivald.sh b/festivald.sh index 320f98f..22f1990 100755 --- a/festivald.sh +++ b/festivald.sh @@ -91,5 +91,6 @@ consume_events() { done } +stty -F $SERIAL 9600 cs8 -cstopb -parenb cat $SERIAL | consume_events