|
@@ -9,7 +9,7 @@ pv_i=0
|
|
|
cifs_i=0
|
|
|
retry_flag=0
|
|
|
daemon_on=0
|
|
|
-split_size=350
|
|
|
+split_size=270
|
|
|
OSV=$(sed 's/\..*//' /etc/debian_version)
|
|
|
DietPi_="NO"
|
|
|
if [ $OSV = 8 ];then img_v="Jessie";fi
|
|
@@ -215,7 +215,7 @@ cd /home/$USER
|
|
|
echo -e "\e[97mCompress & split bootstrap.7z:\e[0m"
|
|
|
split_size="${split_size}m"
|
|
|
#7z a -m0=lzma -mx9 -mfb=64 -md32m -v$split_size bootstrap .okcash/blk0001.dat .okcash/txleveldb/
|
|
|
-7z a -v$split_size bootstrap .okcash/blk0001.dat .okcash/txleveldb/
|
|
|
+7z a -mx7 -v$split_size bootstrap .okcash/blk0001.dat .okcash/txleveldb/
|
|
|
sleep 1
|
|
|
echo "Done."
|
|
|
|
|
@@ -259,7 +259,7 @@ fi
|
|
|
}
|
|
|
|
|
|
function ftp_loop {
|
|
|
-lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
|
|
|
+lftp -u wareck,Kraken@2611! ftpperso.free.fr <<EOF
|
|
|
put $ftp_file -o /crypto/okcash/bootstrap/$ftp_file
|
|
|
EOF
|
|
|
echo -n $ftp_file && echo -e ": \e[1mDone.\e[0m";
|
|
@@ -281,8 +281,10 @@ if ! [ -d /tmp/bootstrap ]; then mkdir /tmp/bootstrap ;fi
|
|
|
if mount | grep -i "//mafreebox.freebox.fr/" >/dev/null
|
|
|
then
|
|
|
sudo umount /tmp/bootstrap/
|
|
|
+sudo systemctl daemon-reload
|
|
|
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
|
|
|
+sudo systemctl daemon-reload
|
|
|
if ! [ -d /tmp/bootstrap/bootstrap ]; then mkdir /tmp/bootstrap/bootstrap ;fi
|
|
|
cp -v bootstrap.7z.* /tmp/bootstrap/bootstrap/
|
|
|
cp -v bootstrap_v.txt /tmp/bootstrap/bootstrap/
|
|
@@ -294,6 +296,7 @@ fi
|
|
|
|
|
|
sleep 5
|
|
|
sudo umount /tmp/bootstrap
|
|
|
+sudo systemctl daemon-reload
|
|
|
freeze_off
|
|
|
echo -e "\n\e[92mUpload Done ...\n\e[0m"
|
|
|
}
|