small change about var for ygginit

This commit is contained in:
Francois B 2018-06-05 14:21:47 +02:00
parent 2c3a8074f8
commit 9095f286b4
2 changed files with 23 additions and 23 deletions

View file

@ -39,7 +39,7 @@ repoAdded=0
# #
# ygginit flag for CLI mode # ygginit flag for CLI mode
# #
ygginitCount=0 ygginitCount=false
# #

View file

@ -63,12 +63,12 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >>
while getopts ":h,v,f,c,u,a,d,q,s,t,n,g,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 case "$option" in
a) # install all apps a) # install all apps
if [ "$ygginitCount" -eq "0" ]; then if [ $ygginitCount = false ]; then
msg "Initializing" msg "Initializing"
yggInit yggInit
msg "Updating the system" msg "Updating the system"
updateSystem updateSystem
ygginitCount=$(($ygginitCount+1)) ygginitCount=true
fi fi
msg "Installing Apps" msg "Installing Apps"
installBase installBase
@ -104,12 +104,12 @@ while getopts ":h,v,f,c,u,a,d,q,s,t,n,g,w,p,k,T" option; do
installXnViewMP installXnViewMP
;; ;;
f) # full install f) # full install
if [ "$ygginitCount" -eq "0" ]; then if [ $ygginitCount = false ]; then
msg "Initializing" msg "Initializing"
yggInit yggInit
msg "Updating the system" msg "Updating the system"
updateSystem updateSystem
ygginitCount=$(($ygginitCount+1)) ygginitCount=true
fi fi
msg "Installing Apps" msg "Installing Apps"
installBase installBase
@ -150,101 +150,101 @@ while getopts ":h,v,f,c,u,a,d,q,s,t,n,g,w,p,k,T" option; do
installXnViewMP installXnViewMP
;; ;;
c) # install themes and icons c) # install themes and icons
if [ "$ygginitCount" -eq "0" ]; then if [ $ygginitCount = false ]; then
msg "Initializing" msg "Initializing"
yggInit yggInit
msg "Updating the system" msg "Updating the system"
updateSystem updateSystem
ygginitCount=$(($ygginitCount+1)) ygginitCount=true
fi fi
msg "Installing Icons/Themes" msg "Installing Icons/Themes"
installIcons installIcons
installThemes installThemes
;; ;;
w) # nitrogen w) # nitrogen
if [ "$ygginitCount" -eq "0" ]; then if [ $ygginitCount = false ]; then
msg "Initializing" msg "Initializing"
yggInit yggInit
msg "Updating the system" msg "Updating the system"
updateSystem updateSystem
ygginitCount=$(($ygginitCount+1)) ygginitCount=true
fi fi
msg "Installing Nitrogen" msg "Installing Nitrogen"
installNitrogen installNitrogen
;; ;;
d) # install Unbound DNS Cache d) # install Unbound DNS Cache
if [ "$ygginitCount" -eq "0" ]; then if [ $ygginitCount = false ]; then
msg "Initializing" msg "Initializing"
yggInit yggInit
msg "Updating the system" msg "Updating the system"
updateSystem updateSystem
ygginitCount=$(($ygginitCount+1)) ygginitCount=true
fi fi
msg "Installing Unbound" msg "Installing Unbound"
installUnbound installUnbound
;; ;;
q) # cardreader q) # cardreader
if [ "$ygginitCount" -eq "0" ]; then if [ $ygginitCount = false ]; then
msg "Initializing" msg "Initializing"
yggInit yggInit
msg "Updating the system" msg "Updating the system"
updateSystem updateSystem
ygginitCount=$(($ygginitCount+1)) ygginitCount=true
fi fi
msg "Installing Card Readers Apps" msg "Installing Card Readers Apps"
installCardReader installCardReader
;; ;;
s) # solaar for logitech devices s) # solaar for logitech devices
if [ "$ygginitCount" -eq "0" ]; then if [ $ygginitCount = false ]; then
msg "Initializing" msg "Initializing"
yggInit yggInit
msg "Updating the system" msg "Updating the system"
updateSystem updateSystem
ygginitCount=$(($ygginitCount+1)) ygginitCount=true
fi fi
msg "Installing Solaar" msg "Installing Solaar"
installSolaar installSolaar
;; ;;
t) # tlp (laptop or low energy usage) t) # tlp (laptop or low energy usage)
if [ "$ygginitCount" -eq "0" ]; then if [ $ygginitCount = false ]; then
msg "Initializing" msg "Initializing"
yggInit yggInit
msg "Updating the system" msg "Updating the system"
updateSystem updateSystem
ygginitCount=$(($ygginitCount+1)) ygginitCount=true
fi fi
msg "Installing TLP" msg "Installing TLP"
installTLP installTLP
;; ;;
n) # latest nvidia driver (see menus if need older version) n) # latest nvidia driver (see menus if need older version)
if [ "$ygginitCount" -eq "0" ]; then if [ $ygginitCount = false ]; then
msg "Initializing" msg "Initializing"
yggInit yggInit
msg "Updating the system" msg "Updating the system"
updateSystem updateSystem
ygginitCount=$(($ygginitCount+1)) ygginitCount=true
fi fi
msg "Installing Nvidia Latest Driver" msg "Installing Nvidia Latest Driver"
installNvidia396 installNvidia396
;; ;;
g) # latest feee graphic drivers, mesa, ... g) # latest feee graphic drivers, mesa, ...
if [ "$ygginitCount" -eq "0" ]; then if [ $ygginitCount = false ]; then
msg "Initializing" msg "Initializing"
yggInit yggInit
msg "Updating the system" msg "Updating the system"
updateSystem updateSystem
ygginitCount=$(($ygginitCount+1)) ygginitCount=true
fi fi
msg "Installing Free Graphic Drivers" msg "Installing Free Graphic Drivers"
installOibaf installOibaf
;; ;;
k) k)
if [ "$ygginitCount" -eq "0" ]; then if [ $ygginitCount = false ]; then
msg "Initializing" msg "Initializing"
yggInit yggInit
msg "Updating the system" msg "Updating the system"
updateSystem updateSystem
ygginitCount=$(($ygginitCount+1)) ygginitCount=true
fi fi
msg "Updating Kernel" msg "Updating Kernel"
kernelUpdate kernelUpdate