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