Skip to content

Commit

Permalink
Fix ntp installation
Browse files Browse the repository at this point in the history
  • Loading branch information
rrobinett committed Jul 19, 2020
1 parent 60ae522 commit 04f412f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wsprdaemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,7 @@ declare WSJTX_REQUIRED_VERSION=2.2.2

function check_for_needed_utilities()
{

### TODO: Check for kiwirecorder only if there are kiwis receivers spec
local apt_update_done="no"
local dpkg_list=$(${DPKG_CMD} -l)
Expand Down Expand Up @@ -816,7 +817,7 @@ function check_for_needed_utilities()
fi
if ! [[ ${dpkg_list} =~ " ntp " ]] ; then
[[ ${apt_update_done} == "no" ]] && sudo apt-get --yes update && apt_update_done="yes"
sudo apt-get install curl --assume-yes
sudo apt-get install ntp --assume-yes
local ret_code=$?
if [[ $ret_code -ne 0 ]]; then
echo "FATAL ERROR: Failed to install 'ntp' which is needed to ensure synchronization with the 2 minute WSPR cycle"
Expand Down

0 comments on commit 04f412f

Please sign in to comment.