Search for zstd in home directory

This is possibly a solution for #2.
This commit is contained in:
Rien Maertens 2020-03-12 08:29:19 +01:00
parent cf96c489eb
commit d0c5ffe9e1
No known key found for this signature in database
GPG Key ID: AE66CE42F1AF9DEF
3 changed files with 3 additions and 3 deletions

View File

@ -33,5 +33,5 @@ You can install `zstd` on your host with your usual package manager. On Ubuntu,
On your **reMarkable** you can do `opkg install zstd` if you have [entware](https://github.com/evidlo/remarkable_entware) installed. If you don't you can use the binary provided in this repository. In general you shouldn't trust binaries strangers on the internet provide to you, but I provide the option if you don't want the hassle of installing entware. On your **reMarkable** you can do `opkg install zstd` if you have [entware](https://github.com/evidlo/remarkable_entware) installed. If you don't you can use the binary provided in this repository. In general you shouldn't trust binaries strangers on the internet provide to you, but I provide the option if you don't want the hassle of installing entware.
You can copy the binary to your remarkable with `scp zstd root@10.11.99.1:/home/root/zstd`. You can copy the binary to your remarkable with `scp zstd.arm root@10.11.99.1:~/zstd`.

View File

@ -28,8 +28,8 @@ fallback_to_gzip() {
# check if zstd is present on remarkable # check if zstd is present on remarkable
if ssh "$ssh_host" "[ -f /opt/bin/zstd ]"; then if ssh "$ssh_host" "[ -f /opt/bin/zstd ]"; then
compress="/opt/bin/zstd" compress="/opt/bin/zstd"
elif ssh "$ssh_host" "[ -f /home/root/zstd ]"; then elif ssh "$ssh_host" "[ -f ~/zstd ]"; then
compress="/home/root/zstd" compress="~/zstd"
fi fi
# gracefully degrade to gzip if zstd is not present on remarkable or host # gracefully degrade to gzip if zstd is not present on remarkable or host

BIN
zst.arm

Binary file not shown.