more installation checks

This commit is contained in:
tb14
2025-07-01 11:49:08 -05:00
parent 0b4ce1505b
commit e8bf21315b
+20
View File
@@ -2430,10 +2430,17 @@ chmod +x $HOME/Desktop/*.desktop
################################################################################
function minicom_install() {
if dpkg -s minicom &>/dev/null; then
echo "Already installed"
else
sudo apt-get -y install minicom
fi
}
function qttermtcp_install() {
if [[ -f $PACKETDIR/QtTermTCP ]] && dpkg -s libqt5serialport5:i386 &>/dev/null && dpkg -s libqt5multimedia5:i386 &>/dev/null; then
echo "Already installed"
else
sudo apt install -y libqt5serialport5:i386 libqt5multimedia5:i386 ||
{ ERRCODE="Failed to install dependencies for QTtermTCP"; errors; return; }
@@ -2460,13 +2467,22 @@ Type=Application
Categories=Radio;" > $HOME/Desktop/qttermtcp.desktop ||
{ ERRCODE="Failed to create desktop icon for QtTermTCP"; errors; }
fi
}
function gtkterm_install() {
if dpkg -s gtkterm &>/dev/null; then
echo "Already installed"
else
sudo apt-get -y install gtkterm
fi
}
function putty_install() {
if dpkg -s putty &>/dev/null; then
echo "Already installed"
else
sudo apt-get -y install putty
fi
}
@@ -2529,6 +2545,9 @@ fi
}
function packet_guide() {
if [[ -f $HOME/Documents/Packet-Radio-setup.txt ]]; then
echo "Already installed"
else
cat > $HOME/Documents/Packet-Radio-setup.txt <<EOF
You should have a few tools installed for use with packet radio modes.
@@ -2627,6 +2646,7 @@ APRS, not full packet.
Search youtube for some great videos on setting up direwolf.
EOF
fi
}
################################################################################
###################### Other tools Functions #################################