From 478f750742b3a76ec8c6bad589e2d929d897a5c6 Mon Sep 17 00:00:00 2001 From: Francois B Date: Sat, 24 Mar 2018 17:20:26 +0100 Subject: [PATCH] add headless options and update usage fct --- core_functions.sh | 8 +++++++- yggdrasil.sh | 32 +++++++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/core_functions.sh b/core_functions.sh index 3c3bf07..ddcd20b 100644 --- a/core_functions.sh +++ b/core_functions.sh @@ -548,8 +548,14 @@ function usage () { printf "\n" printf $NORMAL printf "Usage : yggdrasil [options]\n\n" - printf " "$BOLDVERT"-f"$NORMAL" : full install (see doc for more details)\n" + printf " "$BOLDVERT"-f"$NORMAL" : install everything (see doc for exceptions)\n" + printf " "$BOLDVERT"-a"$NORMAL" : install all apps\n" printf " "$BOLDVERT"-c"$NORMAL" : install gtk themes and icons\n" + printf " "$BOLDVERT"-d"$NORMAL" : install DNS Cache Unbound\n" + printf " "$BOLDVERT"-k"$NORMAL" : install cardreader apps\n" + printf " "$BOLDVERT"-s"$NORMAL" : install Solaar for Logitech 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"-u"$NORMAL" : update system (apt,snap,...)\n" printf " "$BOLDVERT"-v"$NORMAL" : show verison number\n" printf " "$BOLDVERT"-h"$NORMAL" : show help & informations\n" diff --git a/yggdrasil.sh b/yggdrasil.sh index bacf250..3690a91 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,t,u,a" option; do +while getopts ":h,v,f,c,t,u,a,d,k,s,t,n" option; do case "$option" in t) #test purpose only #yggInit @@ -146,6 +146,36 @@ while getopts ":h,v,f,c,t,u,a" option; do installThemes exit ;; + d) # install Unbound DNS Cache + yggInit + updateSystem + enableUnbound + exit + ;; + k) # cardreader + yggInit + updateSystem + installCardReader + exit + ;; + s) # solaar for logitech devices + yggInit + updateSystem + installSolaar + exit + ;; + t) # tlp (laptop or low energy usage) + yggInit + updateSystem + installTLP + exit + ;; + n) # latest nvidia driver (see menus if need older version) + yggInit + updateSystem + installNvidia384 + exit + ;; u) yggInit updateSystem