From f1a46d63cc8f887053b9c7c5908089ee95c8065d Mon Sep 17 00:00:00 2001 From: turmary Date: Mon, 28 Sep 2020 08:44:56 +0100 Subject: [PATCH] Add: service message direct to standard output and also /var/log/seeed-voicecard.log --- seeed-voicecard | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/seeed-voicecard b/seeed-voicecard index b94ec20..c82f973 100755 --- a/seeed-voicecard +++ b/seeed-voicecard @@ -21,7 +21,9 @@ # THE SOFTWARE. set -x -#exec 1>/var/log/$(basename $0).log 2>&1 +LOGF=/var/log/$(basename $0).log +exec 1> >(tee $LOGF) +exec 2>&1 export PATH=$PATH:/opt/vc/bin OVERLAYS=/boot/overlays