|
@@ -10,7 +10,7 @@ pv_i=0
|
|
cifs_i=0
|
|
cifs_i=0
|
|
retry_flag=0
|
|
retry_flag=0
|
|
daemon_on=0
|
|
daemon_on=0
|
|
-split_size=400
|
|
|
|
|
|
+split_size=350
|
|
|
|
|
|
echo -e "\e[97mOkcash Blockchain Uploader v$version ($date)\e[0m"
|
|
echo -e "\e[97mOkcash Blockchain Uploader v$version ($date)\e[0m"
|
|
echo -e "Update for Mega.io."
|
|
echo -e "Update for Mega.io."
|
|
@@ -150,6 +150,9 @@ if [ -f bootstrap.partad ]; then mv bootstrap.partad bootstrap.part04 && echo "b
|
|
if [ -f bootstrap.partae ]; then mv bootstrap.partae bootstrap.part05 && echo "bootstrap.partae >> bootstrap.part05" ;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.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
|
|
if [ -f bootstrap.partag ]; then mv bootstrap.partag bootstrap.part07 && echo "bootstrap.partag >> bootstrap.part07" ;fi
|
|
|
|
+if [ -f bootstrap.partah ]; then mv bootstrap.partah bootstrap.part08 && echo "bootstrap.partah >> bootstrap.part08" ;fi
|
|
|
|
+if [ -f bootstrap.partai ]; then mv bootstrap.partai bootstrap.part09 && echo "bootstrap.partai >> bootstrap.part09" ;fi
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
echo -e "\n\e[95mMake bootstrap_v.txt:\e[0m"
|
|
echo -e "\n\e[95mMake bootstrap_v.txt:\e[0m"
|
|
@@ -163,6 +166,9 @@ link2 :
|
|
link3 :
|
|
link3 :
|
|
link4 :
|
|
link4 :
|
|
link5 :
|
|
link5 :
|
|
|
|
+link6 :
|
|
|
|
+link7 :
|
|
|
|
+link8 :
|
|
EOF
|
|
EOF
|
|
sed -i -e "s/XXXX/$Raw_date/g" bootstrap_v.txt
|
|
sed -i -e "s/XXXX/$Raw_date/g" bootstrap_v.txt
|
|
sed -i -e "s/YYYY/$YYYY/g" bootstrap_v.txt
|
|
sed -i -e "s/YYYY/$YYYY/g" bootstrap_v.txt
|
|
@@ -175,7 +181,9 @@ 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.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.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.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
|
|
|
|
|
|
+if [ -f bootstrap.part07 ]; then echo -e -n "md5sum Bootstrap.part07: " && md5sum bootstrap.part07 > bootstrap07.md5 && echo -e "\e[1mDone.\e[0m"; fi
|
|
|
|
+if [ -f bootstrap.part08 ]; then echo -e -n "md5sum Bootstrap.part08: " && md5sum bootstrap.part08 > bootstrap08.md5 && echo -e "\e[1mDone.\e[0m"; fi
|
|
|
|
+if [ -f bootstrap.part09 ]; then echo -e -n "md5sum Bootstrap.part09: " && md5sum bootstrap.part09 > bootstrap09.md5 && echo -e "\e[1mDone.\e[0m"; fi
|
|
touch /home/$USER/bootstrap_uploadpass
|
|
touch /home/$USER/bootstrap_uploadpass
|
|
}
|
|
}
|
|
|
|
|
|
@@ -211,6 +219,9 @@ 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 bootstrap05.md5 ];then ftp_file=bootstrap05.md5 && ftp_loop ;fi
|
|
if [ -f bootstrap06.md5 ];then ftp_file=bootstrap06.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
|
|
if [ -f bootstrap07.md5 ];then ftp_file=bootstrap07.md5 && ftp_loop ;fi
|
|
|
|
+if [ -f bootstrap08.md5 ];then ftp_file=bootstrap08.md5 && ftp_loop ;fi
|
|
|
|
+if [ -f bootstrap09.md5 ];then ftp_file=bootstrap09.md5 && ftp_loop ;fi
|
|
|
|
+
|
|
echo -e "\n\e[95mUpload files to Freebox :\e[0m"
|
|
echo -e "\n\e[95mUpload files to Freebox :\e[0m"
|
|
if ! [ -d /tmp/bootstrap ]; then mkdir /tmp/bootstrap ;fi
|
|
if ! [ -d /tmp/bootstrap ]; then mkdir /tmp/bootstrap ;fi
|
|
if mount | grep -i "//mafreebox.freebox.fr/" >/dev/null
|
|
if mount | grep -i "//mafreebox.freebox.fr/" >/dev/null
|