add nitrogen in headless cli opts

This commit is contained in:
Francois B 2018-03-25 22:28:25 +02:00
parent bfc8efa5e3
commit 022b985596
2 changed files with 14 additions and 1 deletions

View file

@ -558,6 +558,7 @@ function usage () {
printf " "$BOLDVERT"-f"$NORMAL" : install everything (see doc for exceptions)\n" printf " "$BOLDVERT"-f"$NORMAL" : install everything (see doc for exceptions)\n"
printf " "$BOLDVERT"-a"$NORMAL" : install all apps\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"-w"$NORMAL" : install Nitrogen + remove desktop management from caja\n"
printf " "$BOLDVERT"-d"$NORMAL" : install DNS Cache Unbound\n" printf " "$BOLDVERT"-d"$NORMAL" : install DNS Cache Unbound\n"
printf " "$BOLDVERT"-k"$NORMAL" : install cardreader apps\n" printf " "$BOLDVERT"-k"$NORMAL" : install cardreader apps\n"
printf " "$BOLDVERT"-s"$NORMAL" : install Solaar for Logitech devices\n" printf " "$BOLDVERT"-s"$NORMAL" : install Solaar for Logitech devices\n"

View file

@ -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,u,a,d,k,s,t,n,T" option; do while getopts ":h,v,f,c,u,a,d,k,s,t,n,w,T" option; do
case "$option" in case "$option" in
T) #test purpose only T) #test purpose only
yggInit yggInit
@ -107,6 +107,7 @@ while getopts ":h,v,f,c,u,a,d,k,s,t,n,T" option; do
installViber installViber
installFranz installFranz
installTeamViewer13 installTeamViewer13
toolAutoremove
exit exit
;; ;;
f) # full install f) # full install
@ -156,6 +157,7 @@ while getopts ":h,v,f,c,u,a,d,k,s,t,n,T" option; do
installViber installViber
installFranz installFranz
installTeamViewer13 installTeamViewer13
toolAutoremove
exit exit
;; ;;
c) # install themes and icons c) # install themes and icons
@ -166,6 +168,12 @@ while getopts ":h,v,f,c,u,a,d,k,s,t,n,T" option; do
installThemes installThemes
exit exit
;; ;;
w) # nitrogen
yggInit
updateSystem
installNitrogen
exit
;;
d) # install Unbound DNS Cache d) # install Unbound DNS Cache
yggInit yggInit
updateSystem updateSystem
@ -201,6 +209,10 @@ while getopts ":h,v,f,c,u,a,d,k,s,t,n,T" option; do
updateSystem updateSystem
exit exit
;; ;;
p)
toolAutoremove
exit
;;
h) # display help h) # display help
usage usage
exit exit