kopia lustrzana https://github.com/km4ack/pi-build
commit
66d14079e4
|
@ -25,6 +25,7 @@ TEMPCRON=${MYPATH}/cron.tmp
|
|||
DIR=${MYPATH}/temp
|
||||
WHO=$(whoami)
|
||||
VERSION=$(grep "version=" ${MYPATH}/changelog | sed 's/version=//')
|
||||
DATE=$(date)
|
||||
|
||||
FINISH() {
|
||||
if [ -f "${BASE}" ]; then
|
||||
|
@ -266,14 +267,12 @@ if [ -n "${GPSINSTALL}" ]; then
|
|||
yad --center --height="300" --width="300" --form --separator="|" --item-separator="|" --title="GPS" \
|
||||
--image ${LOGO} --window-icon=${LOGO} --image-on-top \
|
||||
--text="\r\r\r\r\r<b><big>Connect your GPS to the pi</big></b>" \
|
||||
--button="Exit":1 \
|
||||
--button="Continue":2
|
||||
|
||||
BUT=$?
|
||||
if [ ${BUT} = 1 ] || [ ${BUT} = 252 ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
USB=$(ls /dev/serial/by-id)
|
||||
USB=$(echo "NONE $USB") #see https://github.com/km4ack/pi-build/issues/293
|
||||
USB=$(echo $USB | sed "s/\s/|/g")
|
||||
|
||||
GPS=$(yad --center --height="600" --width="300" --form --separator="|" --item-separator="|" --title="GPS" \
|
||||
|
@ -508,6 +507,7 @@ sudo mv build-a-pi.desktop /usr/share/applications/
|
|||
# Install Base Apps
|
||||
#####################################
|
||||
touch ${RB}
|
||||
echo "INITIAL=\"build date $DATE version $VERSION\"" >> ${RB}
|
||||
source ${FUNCTIONS}/base.function
|
||||
while read i; do
|
||||
$i
|
||||
|
|
23
changelog
23
changelog
|
@ -1,4 +1,25 @@
|
|||
version=3.1.0
|
||||
version=3.1.1
|
||||
|
||||
3.1.1 Remove echo statement from patch menu script.
|
||||
Add libusb-1.0 and libusb-dev to hamlib build section https://github.com/km4ack/pi-build/issues/296
|
||||
fix FLAMP install - https://github.com/km4ack/pi-build/issues/301
|
||||
fix BAP menu - https://github.com/km4ack/pi-build/issues/302
|
||||
fix pat secutiry issue - https://github.com/km4ack/pi-build/issues/299
|
||||
add build/update logging - https://github.com/km4ack/pi-build/issues/294
|
||||
add "none" to GPS selection - https://github.com/km4ack/pi-build/issues/293
|
||||
fix spelling of i2c - https://github.com/km4ack/pi-build/issues/289
|
||||
fix linbpq help file - https://github.com/km4ack/pi-build/issues/287
|
||||
fix python-suds error - https://github.com/km4ack/pi-build/issues/272
|
||||
fix conky awk error - https://github.com/km4ack/pi-build/issues/306
|
||||
fix gridtracker link - https://github.com/km4ack/pi-build/issues/314
|
||||
fix gridtracker install error - https://github.com/km4ack/pi-build/issues/286
|
||||
fix hamrs install bug - https://github.com/km4ack/pi-build/issues/288
|
||||
fix gpsd issue - https://github.com/km4ack/pi-build/issues/316
|
||||
resolve issue 199 - https://github.com/km4ack/pi-build/issues/199
|
||||
remove exit option for GPS - https://github.com/km4ack/pi-build/issues/318
|
||||
fix multiple chrony.conf entries - https://github.com/km4ack/pi-build/issues/317
|
||||
fix FLDIGI download link
|
||||
|
||||
|
||||
3.1.0 add Build a Pi Patch Tool
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ ${font Arial:bold:size=08}${color Yellow}SYSTEM ${color DarkSlateGray} ${hr 2}
|
|||
${font Arial:bold:size=08}${color White}Frequency $alignr${freq_g cpu0}Ghz
|
||||
${font Arial:bold:size=08}${color White}Uptime $alignr${uptime}
|
||||
#TEMP
|
||||
${font Arial:bold:size=08}${color White}Temp: $alignr ${exec /opt/vc/bin/vcgencmd measure_temp | awk -F "[=\']" '{print($2 * 1.8)+32}'} F
|
||||
${font Arial:bold:size=08}${color White}Temp: $alignr ${exec /opt/vc/bin/vcgencmd measure_temp | awk -F "[=']" '{print($2 * 1.8)+32}'} F
|
||||
${voffset -10}
|
||||
${font Arial:bold:size=6}${color White}CPU${alignr}${cpu}%
|
||||
${cpubar cpu}
|
||||
|
|
|
@ -61,7 +61,7 @@ ${font Arial:bold:size=14}${color Yellow}SYSTEM ${color DarkSlateGray} ${hr 2}
|
|||
${font Arial:bold:size=14}${color White}Frequency $alignr${freq_g cpu0}Ghz
|
||||
${font Arial:bold:size=14}${color White}Uptime $alignr${uptime}
|
||||
#TEMP
|
||||
${font Arial:bold:size=14}${color White}Temp: $alignr ${exec /opt/vc/bin/vcgencmd measure_temp | awk -F "[=\']" '{print($2 * 1.8)+32}'} F
|
||||
${font Arial:bold:size=14}${color White}Temp: $alignr ${exec /opt/vc/bin/vcgencmd measure_temp | awk -F "[=']" '{print($2 * 1.8)+32}'} F
|
||||
${voffset -15}
|
||||
${font Arial:bold:size=10}${color White}CPU${alignr}${cpu}%
|
||||
${cpubar cpu}
|
||||
|
|
|
@ -57,7 +57,7 @@ ${font Arial:bold:size=10}${color Yellow}SYSTEM ${color DarkSlateGray} ${hr 2}
|
|||
${font Arial:bold:size=10}${color White}Frequency $alignr${freq_g cpu0}Ghz
|
||||
${font Arial:bold:size=10}${color White}Uptime $alignr${uptime}
|
||||
#TEMP
|
||||
${font Arial:bold:size=10}${color White}Temp: $alignr ${exec /opt/vc/bin/vcgencmd measure_temp | awk -F "[=\']" '{print($2 * 1.8)+32}'} F
|
||||
${font Arial:bold:size=10}${color White}Temp: $alignr ${exec /opt/vc/bin/vcgencmd measure_temp | awk -F "[=']" '{print($2 * 1.8)+32}'} F
|
||||
${voffset -15}
|
||||
${font Arial:bold:size=8}${color White}CPU${alignr}${cpu}%
|
||||
${cpubar cpu}
|
||||
|
|
|
@ -58,7 +58,7 @@ ${font Arial:bold:size=08}${color Yellow}SYSTEM ${color DarkSlateGray} ${hr 2}
|
|||
${font Arial:bold:size=08}${color White}Frequency $alignr${freq_g cpu0}Ghz
|
||||
${font Arial:bold:size=08}${color White}Uptime $alignr${uptime}
|
||||
#TEMP
|
||||
${font Arial:bold:size=08}${color White}Temp: $alignr ${exec /opt/vc/bin/vcgencmd measure_temp | awk -F "[=\']" '{print($2 * 1.8)+32}'} F
|
||||
${font Arial:bold:size=08}${color White}Temp: $alignr ${exec /opt/vc/bin/vcgencmd measure_temp | awk -F "[=']" '{print($2 * 1.8)+32}'} F
|
||||
${voffset -10}
|
||||
${font Arial:bold:size=6}${color White}CPU${alignr}${cpu}%
|
||||
${cpubar cpu}
|
||||
|
|
|
@ -40,7 +40,9 @@ PAT() {
|
|||
#set locator
|
||||
sed -i "s/\"locator\": \".*\",/\"locator\": \"$GRID\",/" ${FIG}
|
||||
#Change localhost to 0.0.0.0
|
||||
sed -i "s/\"http_addr\": \".*\",/\"http_addr\": \"0.0.0.0:$PORT\",/" ${FIG}
|
||||
#This is a secutiry risk. See https://github.com/km4ack/pi-build/issues/299
|
||||
#Changed to 127.0.0.1 on 11OCT2021 KM4ACK
|
||||
sed -i "s/\"http_addr\": \".*\",/\"http_addr\": \"127.0.0.1:$PORT\",/" ${FIG}
|
||||
jq '.ax25.rig = '\"my-rig\"'' ${HOME}/.wl2k/config.json | jq '.ardop.rig = '\"my-rig\"'' | jq '.hamlib_rigs = {'\"my-rig\"': {"address": "127.0.0.1:4532", "network": "tcp"}}' >~/Desktop/config.json
|
||||
mv ${HOME}/Desktop/config.json ${FIG}
|
||||
sed -i 's/"enable_http": false,/"enable_http": true,/' ${FIG}
|
||||
|
@ -252,7 +254,7 @@ CHIRP() {
|
|||
cd ${DIR} || return
|
||||
wget --tries 2 --connect-timeout=60 https://trac.chirp.danplanet.com/chirp_daily/LATEST/
|
||||
CHIRPBUILD=$(cat index.html | grep .tar.gz | grep chirp-daily- | awk '{ print $6 }' | sed 's/.*"//' | sed 's/>//' | sed 's/[<].*$//')
|
||||
sudo apt-get -y install python-gtk2 python-serial python-libxml2
|
||||
sudo apt-get -y install python-gtk2 python-serial python-libxml2 python-suds
|
||||
mkdir ${HOME}/chirp
|
||||
cd ${HOME}/chirp || return
|
||||
wget --tries 2 --connect-timeout=60 https://trac.chirp.danplanet.com/chirp_daily/LATEST/$CHIRPBUILD
|
||||
|
@ -316,13 +318,14 @@ EOF
|
|||
GRIDTRACKER() {
|
||||
cd ${HOME} || return
|
||||
sudo apt-get install -y libgconf-2-4
|
||||
GRIDDLL=$(curl -s https://tagloomis.com/downloads/ | grep linux-arm32 | sed 's/^.*href="//;s/".*//')
|
||||
#Line below changed 05JULY2021 to correct https://github.com/km4ack/pi-build/issues/253
|
||||
GRIDDLL=$(curl -s https://tagloomis.com/downloads/ | grep linux-arm | sed 's/^.*href="//;s/".*//')
|
||||
#GRIDDLL=$(curl -s https://tagloomis.com/downloads/ | grep linux-arm | sed 's/^.*href="//;s/".*//')
|
||||
wget --tries 2 --connect-timeout=60 $GRIDDLL
|
||||
GRIDTAR=$(echo $GRIDDLL | sed 's/.*\///g')
|
||||
tar -xzvf $GRIDTAR
|
||||
rm ./*.gz
|
||||
OLDFOLDER=$(ls | grep Grid)
|
||||
OLDFOLDER=$(ls | grep GridTracker*-linux-arm32)
|
||||
mv "$OLDFOLDER" $HOME/GridTracker
|
||||
cat >gridtracker.desktop <<EOF
|
||||
[Desktop Entry]
|
||||
|
@ -636,10 +639,18 @@ EOF
|
|||
# HAMRS
|
||||
##################################
|
||||
HAMRS() {
|
||||
#move any existing hamrs files that might get in the way - https://github.com/km4ack/pi-build/issues/288
|
||||
HAMRSCHECK=$(ls ~/Downloads/ | grep hamrs-)
|
||||
if [ -n $HAMRSCHECK ]; then
|
||||
echo "moving old hamrs file(s)"
|
||||
mkdir -p $HOME/Downloads/old-hamrs
|
||||
mv $HOME/Downloads/hamrs* $HOME/Downloads/old-hamrs
|
||||
fi
|
||||
|
||||
cd ${HOME}/Downloads
|
||||
DL=$(curl https://www.hamrs.app | grep armv7 | sed 's/^.*href="//;s/">//')
|
||||
wget ${DL}
|
||||
HAMRS=$(ls | grep hamrs)
|
||||
HAMRS=$(ls | grep hamrs-)
|
||||
mv ${HAMRS} hamrs
|
||||
chmod +x hamrs
|
||||
sudo mv hamrs /usr/local/bin/
|
||||
|
|
|
@ -45,14 +45,37 @@ HSTOOLS() {
|
|||
################################
|
||||
GPS() {
|
||||
cd ${DIR} || return
|
||||
wget --tries 2 --connect-timeout=60 https://raw.githubusercontent.com/km4ack/pi-scripts/master/gpsinstall
|
||||
chmod +x ${DIR}/gpsinstall
|
||||
sudo ${DIR}/gpsinstall
|
||||
rm ${DIR}/gpsinstall
|
||||
|
||||
#old gpsd install left for reference
|
||||
#wget --tries 2 --connect-timeout=60 https://raw.githubusercontent.com/km4ack/pi-scripts/master/gpsinstall
|
||||
#chmod +x ${DIR}/gpsinstall
|
||||
#sudo ${DIR}/gpsinstall
|
||||
#rm ${DIR}/gpsinstall
|
||||
|
||||
#begin gpsd change 11OCT2021 - see https://github.com/km4ack/pi-build/issues/316
|
||||
sudo apt-get -y install scons libncurses5-dev python-dev pps-tools chrony
|
||||
sudo ldconfig
|
||||
cd $HOME/Downloads
|
||||
wget http://download.savannah.gnu.org/releases/gpsd/gpsd-3.23.1.tar.gz
|
||||
tar -xzf gpsd-3.23.1.tar.gz
|
||||
rm gpsd-3.23.1.tar.gz
|
||||
cd gpsd-3.23.1/
|
||||
scons prefix=/usr --config=force
|
||||
sudo scons udev-install
|
||||
sudo ldconfig
|
||||
sudo wget https://raw.githubusercontent.com/km4ack/pi-scripts/master/gpsd -P /etc/default/
|
||||
sudo rm -rf gpsd-3.23.1/
|
||||
CHRONYCHK=$(grep "refclock SHM 0 offset 0.5 delay 0.2 refid NMEA" /etc/chrony/chrony.conf)
|
||||
if [ -z "$CHRONYCHK" ]; then
|
||||
echo "refclock SHM 0 offset 0.5 delay 0.2 refid NMEA" | sudo tee -a /etc/chrony/chrony.conf
|
||||
fi
|
||||
#end gpsd change 11OCT2021
|
||||
|
||||
#Set GPS by serial ID
|
||||
#GPS Variable set by main script or update script
|
||||
#and placed in config file
|
||||
#GPS Variable set by main script or update script and placed in config file
|
||||
if [ "$GPS" != 'NONE' ]; then
|
||||
sudo sed -i "s|DEVICES.*$|DEVICES=\"$GPS\"|g" /etc/default/gpsd
|
||||
fi
|
||||
|
||||
#add xgps to menu
|
||||
cat >xgps.desktop <<EOF
|
||||
|
@ -112,6 +135,7 @@ EOF
|
|||
# HAMLIB
|
||||
################################
|
||||
HAMLIB() {
|
||||
sudo apt install -y libusb-1.0 libusb-dev
|
||||
cd ${DIR} || return
|
||||
NEWRIG=$(curl -s https://sourceforge.net/projects/hamlib/files/latest/download |
|
||||
grep -o https://downloads.sourceforge.net/project/hamlib/hamlib/[0-9].[0-9] |
|
||||
|
|
|
@ -99,7 +99,7 @@ FLWRAP() {
|
|||
##################################
|
||||
FLDIGI() {
|
||||
#Determine latest FLDIGI
|
||||
FLTAR=$(curl -s http://www.w1hkj.com/files/fldigi/ | grep .tar.gz | sed 's/<li><a\ href="//' | sed 's/">\ fldigi.*$//')
|
||||
FLTAR=$(curl -s http://www.w1hkj.com/files/fldigi/ | grep .tar.gz | sed 's/.*fldigi/fldigi/;s/.gz.*$/.gz/')
|
||||
FLPKG=$(echo ${FLTAR} | sed 's/.tar.gz//')
|
||||
|
||||
#Download latest FLDIGI tar file
|
||||
|
@ -131,7 +131,7 @@ FLMSG() {
|
|||
|
||||
#Build FLMSG
|
||||
cd ${MSGPKG} || return
|
||||
./configure --prefix=/usr/local --enable-static
|
||||
./configure --prefix=/usr/local --enable-static --without-flxmlrpc
|
||||
make
|
||||
sudo make install
|
||||
sudo ldconfig
|
||||
|
@ -141,7 +141,7 @@ FLMSG() {
|
|||
##################################
|
||||
FLAMP() {
|
||||
#determine latest FLAMP
|
||||
AMPTAR=$(curl -s http://www.w1hkj.com/files/flamp/ | grep .tar.gz | sed 's/<li><a\ href="//' | sed 's/">\ flamp.*$//')
|
||||
AMPTAR=$(curl -s http://www.w1hkj.com/files/flamp/ | grep .tar.gz | sed 's/<li><a\ href="//' | sed 's/">\ flamp.*$//' | tac | head -1)
|
||||
AMPPKG=$(echo ${AMPTAR} | sed 's/.tar.gz//')
|
||||
|
||||
#download FLAMP
|
||||
|
|
|
@ -123,11 +123,11 @@ RTC() {
|
|||
IC2ACTIVE=$(ls /dev/*i2c*)
|
||||
|
||||
if [ ${IC2ACTIVE} = '/dev/i2c-1' ]; then
|
||||
echo "IC2 is active"
|
||||
echo "I2C is active"
|
||||
else
|
||||
yad --form --width=500 --text-align=center --center --title="Build-a-Pi" --text-align=center \
|
||||
--image ${LOGO} --window-icon=${LOGO} --image-on-top --separator="|" --item-separator="|" \
|
||||
--text="Please enable IC2 interface in the Raspberry Pi Configuration and try again" \
|
||||
--text="Please enable I2C interface in the Raspberry Pi Configuration and try again" \
|
||||
--button=gtk-close
|
||||
exit 1
|
||||
fi
|
||||
|
@ -361,7 +361,7 @@ his/her station.
|
|||
|
||||
After completing the config file, you can
|
||||
start LinBPQ from the command line by running:
|
||||
~/linbpq/.linbpq
|
||||
~/linbpq/./linbpq
|
||||
|
||||
Depending on your station setup, you may
|
||||
need to start rig control, direwolf, or
|
||||
|
|
|
@ -13,6 +13,8 @@ REV=20210411
|
|||
|
||||
source $HOME/.config/KM4ACK
|
||||
|
||||
sudo mkdir -p /usr/local/share/applications
|
||||
|
||||
|
||||
FLSUITE(){
|
||||
##########################
|
||||
|
|
|
@ -45,7 +45,6 @@ MENU
|
|||
fi
|
||||
|
||||
#verify patch has not been applied already
|
||||
echo "getting patchname"
|
||||
PATCHNAME=$(grep PATCHNAME= $DIR/pi-build/patch/${PATCH} | sed 's/PATCHNAME=//')
|
||||
PATCHCHECK=$(grep ${PATCHNAME} $HOME/.config/patch)
|
||||
|
||||
|
|
|
@ -6,14 +6,14 @@ Occasionally small changes (patches) are needed for the Build a Pi code. These c
|
|||
# test-patch
|
||||
This patch is for testing purposes only. It will echo "This is a test patch" to the terminal.
|
||||
|
||||
# test2-patch
|
||||
This patch is for testing purposes only. It will echo "This is a test patch" to the terminal.
|
||||
|
||||
# flmsg-20210806
|
||||
This patch will install FLMSG 4.0.19 which as of 06AUG2021 will not compile on the Pi with the current Build a Pi code. This patch takes ~20 minutes to complete.
|
||||
|
||||
# hamlib4.3-20210905
|
||||
Backup your pi before installing this patch! This patch will install the latest version of libusb-1.0 and hamlib 4.3. See https://github.com/km4ack/pi-build/issues/296 This patch take ~30 minutes to complete.
|
||||
# hamlib4.3-20210920
|
||||
This patch will install hamlib 4.3 onto your Pi. This patch takes ~20 minutes to complete. https://github.com/km4ack/pi-build/issues/296
|
||||
|
||||
# flamp-20210912
|
||||
This patch will install FLAMP. See this issue https://github.com/km4ack/pi-build/issues/301 for more details. This patch takes ~20 minutes to complete.
|
||||
|
||||
Last Edit 01SEPT2021
|
||||
|
||||
|
|
|
@ -1,23 +1,35 @@
|
|||
#!/bin/bash
|
||||
|
||||
#This test-patch script should serve as a
|
||||
#template for future patch scripts.
|
||||
#20210805 KM4ACK
|
||||
#This script installs FLAMP.
|
||||
#20210912 km4ack
|
||||
|
||||
#Give this patch a unique name. A good idea is
|
||||
#to give it the application name that is being
|
||||
#patched followed by the date. ie FLDIDI20210805
|
||||
|
||||
PATCHNAME=test-patch20210807
|
||||
PATCHNAME=flamp-20210912
|
||||
|
||||
PATCHFILE=$HOME/.config/patch
|
||||
touch $PATCHFILE
|
||||
###############################
|
||||
#Patch script commands go here#
|
||||
###############################
|
||||
clear;echo;echo
|
||||
echo "This is a test patch"
|
||||
#determine latest FLAMP
|
||||
AMPTAR=$(curl -s http://www.w1hkj.com/files/flamp/ | grep .tar.gz | sed 's/<li><a\ href="//' | sed 's/">\ flamp.*$//' | tac | head -1)
|
||||
AMPPKG=$(echo ${AMPTAR} | sed 's/.tar.gz//')
|
||||
|
||||
#download FLAMP
|
||||
cd ${HOME}/Downloads || return
|
||||
wget --tries 2 --connect-timeout=60 http://www.w1hkj.com/files/flamp/$AMPTAR
|
||||
tar -zxvf ${AMPTAR}
|
||||
|
||||
|
||||
#build FLAMP
|
||||
cd ${AMPPKG} || return
|
||||
./configure --prefix=/usr/local --enable-static
|
||||
make
|
||||
sudo make install
|
||||
sudo ldconfig
|
||||
|
||||
#############################################
|
||||
#write patch name to a file so we can #
|
|
@ -1,48 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
#This script will install the latest version of hamlib-1.0
|
||||
#and then install hamlib 4.3
|
||||
#https://github.com/km4ack/pi-build/issues/296
|
||||
#20210805 KM4ACK
|
||||
|
||||
#Give this patch a unique name. A good idea is
|
||||
#to give it the application name that is being
|
||||
#patched followed by the date. ie FLDIDI20210805
|
||||
|
||||
PATCHNAME=hamlib4.3-20210905
|
||||
|
||||
PATCHFILE=$HOME/.config/patch
|
||||
touch $PATCHFILE
|
||||
###############################
|
||||
#Patch script commands go here#
|
||||
###############################
|
||||
clear;echo;echo
|
||||
echo "installing libusb library"
|
||||
sudo apt install libudev-dev
|
||||
cd $HOME/Downloads
|
||||
wget https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.24/libusb-1.0.24.tar.bz2
|
||||
tar -xf libusb-1.0.24.tar.bz2
|
||||
cd libusb-1.0.24
|
||||
./configure
|
||||
make
|
||||
sudo make install
|
||||
|
||||
|
||||
cd $HOME/Downloads
|
||||
wget https://github.com/Hamlib/Hamlib/releases/download/4.3/hamlib-4.3.tar.gz
|
||||
tar -xf hamlib-4.3.tar.gz
|
||||
cd hamlib-4.3
|
||||
./configure
|
||||
make
|
||||
sudo make install
|
||||
sudo ldconfig
|
||||
|
||||
|
||||
|
||||
#############################################
|
||||
#write patch name to a file so we can #
|
||||
#look and see if it has been applied before.#
|
||||
#This is checked by the patch-menu script #
|
||||
#before running the patch #
|
||||
#############################################
|
||||
echo "$PATCHNAME" >> $PATCHFILE
|
|
@ -0,0 +1,62 @@
|
|||
#!/bin/bash
|
||||
|
||||
#This test-patch script should serve as a
|
||||
#template for future patch scripts.
|
||||
#20210805 KM4ACK
|
||||
|
||||
#Give this patch a unique name. A good idea is
|
||||
#to give it the application name that is being
|
||||
#patched followed by the date. ie FLDIDI20210805
|
||||
|
||||
PATCHNAME=hamlib4.3-20210920
|
||||
|
||||
PATCHFILE=$HOME/.config/patch
|
||||
touch $PATCHFILE
|
||||
###############################
|
||||
#Patch script commands go here#
|
||||
###############################
|
||||
clear;echo;echo
|
||||
if [ -d $HOME/Downloads/hamlib-4.3 ]; then
|
||||
cd $HOME/Downloads/hamlib-4.3
|
||||
sudo make uninstall
|
||||
sudo make clean
|
||||
sudo apt install -y libusb-1.0 libusb-dev
|
||||
./configure
|
||||
make
|
||||
sudo make install
|
||||
sudo ldconfig
|
||||
else
|
||||
echo "###################################"
|
||||
echo "hamlib source directory not found"
|
||||
echo "Downloading hamlib"
|
||||
echo "###################################"
|
||||
sleep 2
|
||||
cd $HOME/Downloads
|
||||
NEWRIG=$(curl -s https://sourceforge.net/projects/hamlib/files/latest/download |
|
||||
grep -o https://downloads.sourceforge.net/project/hamlib/hamlib/[0-9].[0-9] |
|
||||
head -n 1 | awk -F "/" '{print $7}')
|
||||
HAMLIBLINK=https://sourceforge.net/projects/hamlib/files/hamlib/${NEWRIG}/hamlib-${NEWRIG}.tar.gz
|
||||
cd ${HOME}/Downloads || return
|
||||
echo "###################################"
|
||||
echo "# Installing Hamlib "
|
||||
echo "###################################"
|
||||
wget --tries 2 --connect-timeout=60 ${HAMLIBLINK}
|
||||
|
||||
tar -xzf hamlib-${NEWRIG}.tar.gz
|
||||
rm hamlib-${NEWRIG}.tar.gz
|
||||
cd hamlib-${NEWRIG} || return
|
||||
sudo apt install -y libusb-1.0 libusb-dev
|
||||
./configure
|
||||
make
|
||||
sudo make install
|
||||
sudo ldconfig
|
||||
fi
|
||||
|
||||
|
||||
#############################################
|
||||
#write patch name to a file so we can #
|
||||
#look and see if it has been applied before.#
|
||||
#This is checked by the patch-menu script #
|
||||
#before running the patch #
|
||||
#############################################
|
||||
echo "$PATCHNAME" >> $PATCHFILE
|
2
update
2
update
|
@ -22,6 +22,7 @@ CONFIG=${MYPATH}/config
|
|||
LOGO=${MYPATH}/logo.png
|
||||
TEMPCRON=${MYPATH}/cron.tmp
|
||||
VERSION=$(grep "version=" ${MYPATH}/changelog | sed 's/version=//')
|
||||
DATE=$(date)
|
||||
|
||||
FINISH() {
|
||||
if [ -f "${BASE}" ]; then
|
||||
|
@ -1192,6 +1193,7 @@ sudo apt -y full-upgrade
|
|||
# Install Base Apps
|
||||
#####################################
|
||||
touch ${HOME}/.config/KM4ACK
|
||||
echo "UPDATE=\"ran $DATE Version $VERSION\"" >> ${HOME}/.config/KM4ACK
|
||||
while read i; do
|
||||
source ${FUNCTIONS}/base.function
|
||||
$i
|
||||
|
|
Ładowanie…
Reference in New Issue