Votre Nom 3 years ago
parent
commit
0c6017c53c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      build_cube.sh

+ 3 - 2
build_cube.sh

@@ -49,7 +49,7 @@ sleep 2
 }
 
 function update_ {
-if [ ! -f /home/wareck/.pass1 ] && [ ! -f /home/wareck/.pass2 ]  && [ ! -f /home/wareck/.pass3 ] && [ ! -f /home/wareck/.pass4 ]
+if [ -f /home/wareck/.pass1 ] && [ -f /home/wareck/.pass2 ]  && [ ! -f /home/wareck/.pass3 ] && [ ! -f /home/wareck/.pass4 ]
 then
 echo -e "$(tput setaf 10)\nUpdate and install packages:$(tput sgr0)"
 sudo apt-get update
@@ -446,6 +446,7 @@ sudo chown -R wareck:wareck /home/wareck/cgminer*
 sudo apt-get remove light-locker* -y
 if [ ! -d /home/wareck/.config/lxpanel/LXDE/panels ]
 then
+mkdir /home/wareck/.config/lxpanel
 mkdir /home/wareck/.config/lxpanel/LXDE
 mkdir /home/wareck/.config/lxpanel/LXDE/panels
 fi
@@ -585,7 +586,7 @@ configure_
 mounting_drives_
 cleaning_
 
-#clear
+clear
 dynmotd
 
 echo -e "$(tput setaf 10)\nEnd of script:$(tput sgr0) \n"