Your Name 4 years ago
parent
commit
2703f781b5
2 changed files with 12 additions and 8 deletions
  1. 6 5
      make_deps.sh
  2. 6 3
      upload_mega.sh

+ 6 - 5
make_deps.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 Version=1.7
-OpenSSL_v=1.0.2r
+OpenSSL_v=1.0.2u
 Boost_v=1_67_0
 DB_v=4.8.30
 Miniupnp_v=2.1
@@ -121,7 +121,7 @@ function expand_ {
 echo -e "\n\e[95mExpand original libraries :\e[0m"
 sleep 1
 echo -e "okcash_v5.0.0.5-core.bliss"
-unzip v5.0.0.5-core.bliss.zip
+unzip -o v5.0.0.5-core.bliss.zip
 echo -n " Ok."
 echo -e "\nboost_$Boost_v.tar.gz:"
 tar -I pigz -xf boost_$Boost_v.tar.gz --checkpoint=.250
@@ -144,12 +144,13 @@ function compress_ {
 echo ""
 echo -e "\n\e[95mCompress libraries :\e[0m"
 sleep 1
-echo -e "badown:"
+echo -e "Badown:"
 cd badown
-tar cvfj badown.tar.bz2 badown
+tar cvfj badown.tar.bz2 badown --checkpoint=.1
+echo -n " Ok."
 cd ..
 mv badown/badown.tar.bz2 .
-echo -e "okcash_v5.0.0.5-core.bliss:"
+echo -e "\nokcash_v5.0.0.5-core.bliss:"
 cp -r okcash-5.0.0.5-core.bliss okcash
 tar cf okcash_$okcash_v.tar.xz okcash --checkpoint=.250 -Ipixz
 echo -n " Ok."

+ 6 - 3
upload_mega.sh

@@ -10,10 +10,10 @@ pv_i=0
 cifs_i=0
 retry_flag=0
 daemon_on=0
-split_size=500
+split_size=512
 
 echo -e "\e[97mOkcash Blockchain Uploader v$version ($date)\e[0m"
-echo -e "Update for Mega.io...WIP"
+echo -e "Update for Mega.io."
 echo -e "wareck : wareck@gmail.com"
 echo -e ""
 sleep 2
@@ -150,6 +150,8 @@ if [ -f bootstrap.partac ]; then mv bootstrap.partac bootstrap.part03 && echo "b
 if [ -f bootstrap.partad ]; then mv bootstrap.partad bootstrap.part04 && echo "bootstrap.partad >> bootstrap.part04" ;fi
 if [ -f bootstrap.partae ]; then mv bootstrap.partae bootstrap.part05 && echo "bootstrap.partae >> bootstrap.part05" ;fi
 if [ -f bootstrap.partaf ]; then mv bootstrap.partaf bootstrap.part06 && echo "bootstrap.partaf >> bootstrap.part06" ;fi
+if [ -f bootstrap.partag ]; then mv bootstrap.partag bootstrap.part07 && echo "bootstrap.partag >> bootstrap.part07" ;fi
+
 
 echo -e "\n\e[95mMake bootstrap_v.txt:\e[0m"
 Raw_date="`date +%d.%m.%Y`"
@@ -162,7 +164,6 @@ link2 :
 link3 :
 link4 :
 link5 :
-link6 :
 EOF
 sed -i -e "s/XXXX/$Raw_date/g" bootstrap_v.txt
 sed -i -e "s/YYYY/$YYYY/g" bootstrap_v.txt
@@ -175,6 +176,7 @@ if [ -f bootstrap.part03 ]; then echo -e -n "md5sum Bootstrap.part03: " && md5su
 if [ -f bootstrap.part04 ]; then echo -e -n "md5sum Bootstrap.part04: " && md5sum bootstrap.part04 > bootstrap04.md5 && echo -e "\e[1mDone.\e[0m"; fi
 if [ -f bootstrap.part05 ]; then echo -e -n "md5sum Bootstrap.part05: " && md5sum bootstrap.part05 > bootstrap05.md5 && echo -e "\e[1mDone.\e[0m"; fi
 if [ -f bootstrap.part06 ]; then echo -e -n "md5sum Bootstrap.part06: " && md5sum bootstrap.part06 > bootstrap06.md5 && echo -e "\e[1mDone.\e[0m"; fi
+if [ -f bootstrap.part06 ]; then echo -e -n "md5sum Bootstrap.part07: " && md5sum bootstrap.part07 > bootstrap07.md5 && echo -e "\e[1mDone.\e[0m"; fi
 touch /home/$USER/bootstrap_uploadpass
 }
 
@@ -209,6 +211,7 @@ if [ -f bootstrap03.md5 ];then ftp_file=bootstrap03.md5 && ftp_loop ;fi
 if [ -f bootstrap04.md5 ];then ftp_file=bootstrap04.md5 && ftp_loop ;fi
 if [ -f bootstrap05.md5 ];then ftp_file=bootstrap05.md5 && ftp_loop ;fi
 if [ -f bootstrap06.md5 ];then ftp_file=bootstrap06.md5 && ftp_loop ;fi
+if [ -f bootstrap07.md5 ];then ftp_file=bootstrap07.md5 && ftp_loop ;fi
 echo -e "\n\e[95mUpload files to Freebox :\e[0m"
 if ! [ -d /tmp/bootstrap ]; then mkdir /tmp/bootstrap ;fi
 sudo mount -t cifs //mafreebox.freebox.fr/Disque\ dur/  /tmp/bootstrap/ -o user=freebox,password=password,uid=1000,gid=1000,rw,vers=1.0