mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
cleanup
This commit is contained in:
@@ -1613,53 +1613,6 @@ function voacap_install() {
|
||||
|
||||
|
||||
|
||||
function chirp_install_old2() {
|
||||
if [[ $NEWCHIRP == "SERVER DOWN" ]]; then
|
||||
echo "CHIRP server unresponsive or broken link." >> /tmp/failures
|
||||
return
|
||||
fi
|
||||
|
||||
if [[ ${CHIRP} == ${NEWCHIRP} ]]; then
|
||||
echo "Chirp is already at the most current version"
|
||||
|
||||
|
||||
else
|
||||
if [ $PLAT = Linuxmint ]; then
|
||||
echo "Installing / Updating CHIRP to version ${NEWCHIRP}"
|
||||
sleep 2
|
||||
if ! hash flatpak 2>/dev/null; then
|
||||
sudo apt-get install -y flatpak ||
|
||||
{ ERRCODE="Failed to install flatpak."; errors; return; }
|
||||
fi
|
||||
|
||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo ||
|
||||
{ ERRCODE="Failed to add flathub remote."; errors; return; }
|
||||
|
||||
cd $USERDIR && wget -N https://trac.chirp.danplanet.com/chirp_daily/LATEST/chirp-daily-$NEWCHIRP.flatpak ||
|
||||
{ ERRCODE="Failed to download new version of chirp."; errors; return; }
|
||||
|
||||
sudo flatpak install -y --noninteractive chirp-daily-$NEWCHIRP.flatpak ||
|
||||
{ ERRCODE="Failed to install chirp flatpak."; errors; return; }
|
||||
|
||||
else
|
||||
echo snap_fail_chirp >> /tmp/cleanup
|
||||
|
||||
sudo apt-get install -y snapd ||
|
||||
{ ERRCODE="Failed to install Snap for Chirp installation"; errors; return; }
|
||||
### Testing to see if this avoids a restart requirement
|
||||
sudo modprobe squashfs ||
|
||||
{ ERRCODE="Failed to install Chirp from snap store."; errors; return; }
|
||||
|
||||
sudo snap install chirp-snap --edge ||
|
||||
{ ERRCODE="Failed to install Chirp from snap store."; errors; return; }
|
||||
|
||||
sudo snap connect chirp-snap:raw-usb ||
|
||||
{ ERRCODE="Failed to set USB permissions for Chirp-snap."; errors; return; }
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
function chirp_install() {
|
||||
if [[ $NEWCHIRP == "SERVER DOWN" ]]; then
|
||||
echo "CHIRP server unresponsive or broken link." >> /tmp/failures
|
||||
|
||||
Reference in New Issue
Block a user