diff options
author | krakenrf <78108016+krakenrf@users.noreply.github.com> | 2022-11-01 11:46:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 11:46:59 +0100 |
commit | 20dc77cbc88c0f2c3e33bfe71e6097dc86c7a89e (patch) | |
tree | 50095c16f02cd5a60f2ef8c6a9f7a74e29515fd4 /install_scripts | |
parent | Create adsbexchange_krakenmap.py (diff) | |
download | krakensdr_docs-20dc77cbc88c0f2c3e33bfe71e6097dc86c7a89e.tar krakensdr_docs-20dc77cbc88c0f2c3e33bfe71e6097dc86c7a89e.tar.gz krakensdr_docs-20dc77cbc88c0f2c3e33bfe71e6097dc86c7a89e.tar.bz2 krakensdr_docs-20dc77cbc88c0f2c3e33bfe71e6097dc86c7a89e.tar.lz krakensdr_docs-20dc77cbc88c0f2c3e33bfe71e6097dc86c7a89e.tar.xz krakensdr_docs-20dc77cbc88c0f2c3e33bfe71e6097dc86c7a89e.tar.zst krakensdr_docs-20dc77cbc88c0f2c3e33bfe71e6097dc86c7a89e.zip |
Diffstat (limited to 'install_scripts')
-rw-r--r-- | install_scripts/krakensdr_aarch64_install_doa_pr.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/install_scripts/krakensdr_aarch64_install_doa_pr.sh b/install_scripts/krakensdr_aarch64_install_doa_pr.sh index 17880d4..1954f2b 100644 --- a/install_scripts/krakensdr_aarch64_install_doa_pr.sh +++ b/install_scripts/krakensdr_aarch64_install_doa_pr.sh @@ -1,4 +1,16 @@ #!/bin/bash + +# Prevent sudo timeout +sudo -v # ask for sudo password up-front +while true; do + # Update user's timestamp without running a command + sudo -nv; sleep 1m + # Exit when the parent process is not running any more. In fact this loop + # would be killed anyway after being an orphan(when the parent process + # exits). But this ensures that and probably exit sooner. + kill -0 $$ 2>/dev/null || exit +done & + sudo apt update sudo apt -y install build-essential git cmake libusb-1.0-0-dev lsof libzmq3-dev clang php-cli nodejs gpsd libfftw3-3 libfftw3-dev |