Skip to content

Commit

Permalink
Stop and RN2 AT processes that might be running during uninstall
Browse files Browse the repository at this point in the history
# kill any RN2 AT processes as part of clean up, otherwise danglers
# may have the RTL-SDR open and verification dry run test for satdump will fail
  • Loading branch information
creas002 committed Jul 29, 2024
1 parent edd0f4e commit 5552f61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ansible/roles/common/files/rn2_uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ remove_paths() {
done
}

# kill any RN2 AT processes as part of clean up, otherwise danglers
# may have the RTL-SDR open and verification dryrun test will fail

ps aux | grep -E "receive_|satdump" | grep -v grep | awk -F" " '{print $2}' | xargs kill -9 2>/dev/null
package_statuses
remove_services
remove_packages
Expand Down Expand Up @@ -173,4 +177,4 @@ loggit "INFO" ""
loggit "INFO" "Log of results --> ${UNINSTALL_LOG}"
echo ""

secs_to_human "$(($(date +%s) - ${start}))"
secs_to_human "$(($(date +%s) - ${start}))"

0 comments on commit 5552f61

Please sign in to comment.