From 46713d5efbcde12fb4e98925302132f5b3d2561b Mon Sep 17 00:00:00 2001 From: tb14 Date: Sun, 21 Jul 2019 18:54:47 -0700 Subject: [PATCH] Added LibreOffice --- AmRRON-Setup-Script.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/AmRRON-Setup-Script.sh b/AmRRON-Setup-Script.sh index ae07695..0cb17e1 100755 --- a/AmRRON-Setup-Script.sh +++ b/AmRRON-Setup-Script.sh @@ -272,6 +272,12 @@ else YAACVER="NOT INSTALLED" fi +if hash libreoffice 2>/dev/null; then + LIBREVER="INSTALLED" +else + LIBREVER="NOT INSTALLED" +fi + } @@ -1840,6 +1846,9 @@ function gedit_install() { sudo apt-get -y install gedit } +function libreoffice_install() { +sudo apt -y install libreoffice +} function keyboard_install() { sudo apt-get -y install matchbox-keyboard @@ -2689,11 +2698,12 @@ yad --image=/tmp/banner.png --center --checklist --print-column=2 --separator="" false "ELECTRUM" "Electrum BTC Wallet. Not working on Pi yet." "" \ false "RASPAP" "Turn your Pi 3 into an Access Point (Hotspot)." "" \ false "CONKY" "Conky system monitor" "${CONKYVER}" \ + false "LIBREOFFICE" "LibreOffice Suite" "${LIBREVER}" \ ${r} ${c} >>/tmp/results rc=$? if [[ $rc == 2 ]]; then - otherArray=(GEDIT MATCHBOX_KEYBOARD SCREEN SPEEDTEST ELECTRUM RASPAP CONKY) + otherArray=(GEDIT MATCHBOX_KEYBOARD SCREEN SPEEDTEST ELECTRUM RASPAP CONKY LIBREOFFICE) for i in "${otherArray[@]}" do @@ -3265,6 +3275,9 @@ cat /tmp/results | yad --text-info --center \ BT-ENABLE) echo "Re-Enabling Bluetooth" bt_on ;; + LIBREOFFICE) echo "Installing LibreOffice Suite" + libreoffice_install + ;; esac done < /tmp/results