Use the default SSH host location, also test if zstd is present on host
This commit is contained in:
parent
98709fc0c4
commit
b638810082
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
ssh_host="mohowzeg.usb"
|
ssh_host="root@10.11.99.1"
|
||||||
landscape=true
|
landscape=true
|
||||||
|
|
||||||
width=1408
|
width=1408
|
||||||
@ -8,14 +8,13 @@ bytes_per_pixel=2
|
|||||||
loop_wait="true"
|
loop_wait="true"
|
||||||
loglevel="info"
|
loglevel="info"
|
||||||
|
|
||||||
|
|
||||||
if ! ssh "$ssh_host" true; then
|
if ! ssh "$ssh_host" true; then
|
||||||
echo "$ssh_host unreachable"
|
echo "$ssh_host unreachable"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Gracefully degrade to gzip if zstd is not present
|
# 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"
|
compress="/opt/bin/zstd"
|
||||||
decompress="zstd -d"
|
decompress="zstd -d"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user