add headless options and update usage fct
This commit is contained in:
parent
35bd8eaf97
commit
478f750742
2 changed files with 38 additions and 2 deletions
|
@ -548,8 +548,14 @@ function usage () {
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf $NORMAL
|
printf $NORMAL
|
||||||
printf "Usage : yggdrasil [options]\n\n"
|
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"-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"-u"$NORMAL" : update system (apt,snap,...)\n"
|
||||||
printf " "$BOLDVERT"-v"$NORMAL" : show verison number\n"
|
printf " "$BOLDVERT"-v"$NORMAL" : show verison number\n"
|
||||||
printf " "$BOLDVERT"-h"$NORMAL" : show help & informations\n"
|
printf " "$BOLDVERT"-h"$NORMAL" : show help & informations\n"
|
||||||
|
|
32
yggdrasil.sh
32
yggdrasil.sh
|
@ -50,7 +50,7 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >>
|
||||||
#
|
#
|
||||||
# arguments/options management with getopts
|
# 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
|
case "$option" in
|
||||||
t) #test purpose only
|
t) #test purpose only
|
||||||
#yggInit
|
#yggInit
|
||||||
|
@ -146,6 +146,36 @@ while getopts ":h,v,f,c,t,u,a" option; do
|
||||||
installThemes
|
installThemes
|
||||||
exit
|
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)
|
u)
|
||||||
yggInit
|
yggInit
|
||||||
updateSystem
|
updateSystem
|
||||||
|
|
Loading…
Reference in a new issue