diff --git a/AmRRON-Setup-Script.sh b/AmRRON-Setup-Script.sh index 5f25db3..c5e8060 100755 --- a/AmRRON-Setup-Script.sh +++ b/AmRRON-Setup-Script.sh @@ -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 <