You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

00-run.sh 598 B

123456789101112131415161718192021
  1. #!/bin/bash -e
  2. on_chroot << EOF
  3. mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios"
  4. cd "/home/${FIRST_USER_NAME}/PiSDR/Radios"
  5. if [ ! -d "sdrplay" ]; then
  6. mkdir -p sdrplay
  7. fi
  8. cd sdrplay
  9. wget https://www.sdrplay.com/software/SDRplay_RSP_API-ARM64-3.07.1.run
  10. chmod +x ./SDRplay_RSP_API-ARM64-3.07.1.run
  11. ./SDRplay_RSP_API-ARM64-3.07.1.run --check
  12. ./SDRplay_RSP_API-ARM64-3.07.1.run --noexec --target .
  13. sed -i 's/more sdrplay_license.txt//g' install_lib.sh
  14. sed -i 's/ARCH=\`uname -m\`/ARCH=arm64/g' install_lib.sh
  15. printf "\ny\ny\ny\n" | ./install_lib.sh
  16. systemctl enable sdrplay
  17. ldconfig
  18. EOF