Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Kid tested, mother approved
- # use the -c switch to clean up these packages from a previous installation
- # ./scriptname -c
- # who am i?
- id=`id -u`
- if [ $id -ne 0 ]; then
- echo it is more convenient to install all this as root
- echo either run this script as sudo ./scriptname or
- echo become root and run it.
- echo press control-c to abort, or press enter to continue
- echo if you continue, expect to enter your password a bunch
- echo of times
- fi
- if [ "$1" == "-c" ]; then
- # clean up the old packages
- apt-get remove -y limesuite liblimesuite-dev limesuite-udev limesuite-images \
- soapysdr soapysdr-module-lms7 liblimesuite-udev
- apt-get autoremove -y
- fi
- sudo add-apt-repository -y ppa:myriadrf/drivers && \
- sudo add-apt-repository -y ppa:bladerf/bladerf && \
- sudo add-apt-repository -y ppa:myriadrf/drivers && \
- sudo add-apt-repository -y ppa:myriadrf/gnuradio && \
- sudo add-apt-repository -y ppa:gqrx/gqrx-sdr && \
- sudo apt-get update && \
- sudo apt-get install -y limesuite liblimesuite-dev limesuite-udev limesuite-images && \
- sudo apt-get install -y soapysdr soapysdr-module-lms7 && \
- echo ==== testing phase ====
- echo " == testing limeutil =="
- LimeUtil --info
- echo No info? That is okay. Watch for output on the rest.
- echo
- echo " == testing SoapySDRUtil --info =="
- SoapySDRUtil --info
- echo " == testing SoapySDRUtil with driver=lime =="
- SoapySDRUtil --find="driver=lime" | tee /tmp/outfile
- count=`grep "LimeSDR Mini" /tmp/outfile |wc -l`
- if [ $count -ne 2 ]; then
- echo SoapySDRUtil --find=\"driver=lime\" FAILED.
- echo not install gqrx-sdr
- else
- echo === SoapSDRUtil SUCCESS ===
- sudo apt-get install gqrx-sdr
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement