From b638810082ed8fd7ae42f0ed7f53f97f811d0857 Mon Sep 17 00:00:00 2001 From: Rien Maertens Date: Mon, 2 Mar 2020 09:34:16 +0100 Subject: [PATCH] Use the default SSH host location, also test if zstd is present on host --- reStream.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reStream.sh b/reStream.sh index 01b643d..b0384df 100755 --- a/reStream.sh +++ b/reStream.sh @@ -1,5 +1,5 @@ #!/bin/sh -ssh_host="mohowzeg.usb" +ssh_host="root@10.11.99.1" landscape=true width=1408 @@ -8,14 +8,13 @@ bytes_per_pixel=2 loop_wait="true" loglevel="info" - if ! ssh "$ssh_host" true; then echo "$ssh_host unreachable" exit 1 fi # Gracefully degrade to gzip if zstd is not present -if ssh "$ssh_host" "[ -f /opt/bin/zstd ]"; then +if which zstd && ssh "$ssh_host" "[ -f /opt/bin/zstd ]"; then compress="/opt/bin/zstd" decompress="zstd -d" else