From f93b203cb6e520f1d118c42216e2682522c56de3 Mon Sep 17 00:00:00 2001 From: Francois B Date: Wed, 2 May 2018 13:07:59 +0200 Subject: [PATCH] Oibaf PPA added in menus, cli options, ... --- core_functions.sh | 1 + install_functions.sh | 14 ++++++++++++++ menus_functions.sh | 4 ++++ repo_functions.sh | 9 +++++++++ yggdrasil.sh | 8 +++++++- 5 files changed, 35 insertions(+), 1 deletion(-) diff --git a/core_functions.sh b/core_functions.sh index ba62b58..ef2563f 100644 --- a/core_functions.sh +++ b/core_functions.sh @@ -576,6 +576,7 @@ function usage () { printf " "$BOLDVERT"-s"$NORMAL" : install Solaar for Logitech Unifying devices\n" printf " "$BOLDVERT"-t"$NORMAL" : install TLP for Laptops and low energy usage\n" printf " "$BOLDVERT"-n"$NORMAL" : install lastest Nvidia graphic drivers\n" + printf " "$BOLDVERT"-g"$NORMAL" : install lastest free graphic drivers, mesa, ...\n" printf " "$BOLDVERT"-k"$NORMAL" : update system to the latest kernel\n" printf " "$BOLDVERT"-u"$NORMAL" : update system (apt,snap,...)\n" printf " "$BOLDVERT"-p"$NORMAL" : clean useless packages\n" diff --git a/install_functions.sh b/install_functions.sh index d2cfb3c..652588d 100644 --- a/install_functions.sh +++ b/install_functions.sh @@ -431,6 +431,20 @@ function installWebcamMenu () { installAppsFromListMenu webcam } +# +# install latest versions of graphic drivers, mesa, .... (headless) +# +function installOibaf () { + addRepo_Oibaf +} + +# +# install latest versions of graphic drivers, mesa, .... (Menu) +# +function installOibafMenu () { + addRepo_Oibaf +} + # # install Nvidia Drivers (headless) # diff --git a/menus_functions.sh b/menus_functions.sh index 0528866..fa5967d 100644 --- a/menus_functions.sh +++ b/menus_functions.sh @@ -406,6 +406,7 @@ function showHardwareMenu () { "solaar" "Solaar for Logitech Unifying devices" \ "webcam" "Install webcam neede apps" \ "microcode" "Update Intel/AMD CPU microcode" \ + "oibaf" "latest version of free graphic drivers, mesa, ..." \ "nvidia370" "Install Nvidia 370 graphic drivers" \ "nvidia375" "Install Nvidia 375 graphic drivers" \ "nvidia378" "Install Nvidia 378 graphic drivers" \ @@ -432,6 +433,9 @@ function showHardwareMenu () { "microcode") updateMicrocode ;; + "oibaf") + installOibafMenu + ;; "nvidia370") installNvidia370Menu ;; diff --git a/repo_functions.sh b/repo_functions.sh index 5cd7fa3..ebf251f 100644 --- a/repo_functions.sh +++ b/repo_functions.sh @@ -646,6 +646,15 @@ function addRepo_DhorMyWay () { addPPA ppa:dhor/myway } +# +# Oibaf +# - newest versions of free/open GPU drivers +# - newest versions of Mesa, .... +# +function addRepo_Oibaf () { + addPPA ppa:oibaf/graphics-drivers +} + # # Nvidia drivers # diff --git a/yggdrasil.sh b/yggdrasil.sh index 9ae3ed5..91abf2e 100755 --- a/yggdrasil.sh +++ b/yggdrasil.sh @@ -50,7 +50,7 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >> # # arguments/options management with getopts -while getopts ":h,v,f,c,u,a,d,q,s,t,n,w,p,k,T" option; do +while getopts ":h,v,f,c,u,a,d,q,s,t,n,g,w,p,k,T" option; do case "$option" in a) # install all apps # except @@ -195,6 +195,12 @@ while getopts ":h,v,f,c,u,a,d,q,s,t,n,w,p,k,T" option; do installNvidia396 exit ;; + g) # latest feee graphic drivers, mesa, ... + yggInit + updateSystem + installOibaf + exit + ;; k) yggInit updateSystem