Votre Nom il y a 3 ans
Parent
commit
e4924d3e40
1 fichiers modifiés avec 9 ajouts et 9 suppressions
  1. 9 9
      build_cube.sh

+ 9 - 9
build_cube.sh

@@ -429,13 +429,18 @@ fi
 }
 
 function mounting_drives_ {
-echo -e "$(tput setaf 10)\nMountingr Drives$(tput sgr0)"
+echo -e "$(tput setaf 10)\nMounting Drives$(tput sgr0)"
 if [ $ZFS = "YES" ]
 then
-sudo zpool import Raid | true
+if findmnt /media/Raid/ >/dev/null 2>&1
+then
+sudo zpool export Raid
+else
+sudo zpool import Raid
+fi
 fi
-sudo mount /media/Store
-sudo mount /media/Partage
+if ! findmnt /media/Partage >/dev/null ; then sudo mount /media/Partage ;fi
+if ! findmnt /media/Store >/dev/null ; then sudo mount /media/Store ;fi
 sudo chmod 777 /media/Store
 sudo chmod 777 /media/Partage
 sudo chmod 777 /media/nvme
@@ -460,11 +465,6 @@ if [ -f /home/wareck/.pass2 ]; then rm /home/wareck/.pass2 ;fi
 echo "Done."
 }
 
-#echo -e "$(tput setaf 10)\nFinalisation:$(tput sgr0)"
-#echo "Tightvncserver password:"
-#tightvncserver
-#echo "Done."
-
 intro_
 nvidia_driver_
 update_