Merge pull request #68 from f3fora/main
Kill the process on remarkable at the end
This commit is contained in:
commit
74dce9a47e
@ -93,6 +93,13 @@ ssh_cmd() {
|
|||||||
ssh -o ConnectTimeout=1 -o PasswordAuthentication=no "root@$remarkable" "$@"
|
ssh -o ConnectTimeout=1 -o PasswordAuthentication=no "root@$remarkable" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# kill reStream on remarkable at the end.
|
||||||
|
# shellcheck disable=SC2016
|
||||||
|
exit_rm() {
|
||||||
|
ssh_cmd 'kill $(pidof restream)'
|
||||||
|
}
|
||||||
|
trap exit_rm EXIT INT HUP
|
||||||
|
|
||||||
# SSH_CONNECTION is a variable on reMarkable => ssh '' instead of ssh ""
|
# SSH_CONNECTION is a variable on reMarkable => ssh '' instead of ssh ""
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
remarkable_ip() {
|
remarkable_ip() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user