Fix ip detector

This commit is contained in:
Mark 2025-01-25 17:26:26 -08:00
parent 6493f2fe91
commit 38b819c32a
Signed by: Mark
GPG Key ID: C6D63995FE72FD80

View File

@ -131,7 +131,7 @@ trap exit_rm EXIT INT HUP
# SSH_CONNECTION is a variable on reMarkable => ssh '' instead of ssh ""
# shellcheck disable=SC2016
remarkable_ip() {
ssh_cmd 'echo $SSH_CONNECTION' | cut -d\ -f3
ssh_cmd 'echo $SSH_CONNECTION' | cut -d\ -f3 | cut -d":" -f4
}
# check if we are able to reach the remarkable