-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwget_monster.sh
More file actions
executable file
·43 lines (33 loc) · 1.12 KB
/
wget_monster.sh
File metadata and controls
executable file
·43 lines (33 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
Link="http://www.adme.ru/vdohnovenie-919705/sumasshedshie-starye-otkrytki-549605"
#Path="/mnt/data/Distr/Linux/iso/"
#Path="/mnt/data/Distr/Linux/"
#Path="/mnt/data/Distr/Win/"
#Path="/mnt/data/Distr/Win/Drivers/"
#Path="/mnt/data/Media/"
Path="/mnt/data/Media/Pictures/Other/"
#./apt-install.sh
Res=1
Try=0
while [ $Res != 0 ]; do
Try=$(($Try+1))
echo "Попытка: "$Try
/mnt/data/Personal/C/usbreset/resetmodem.sh
#wget -t 0 -c -T 15 --retry-connrefused=on -P $Path $Link
#wget -r -k -p -E -nc -t 0 -c -T 15 --retry-connrefused=on -P $Path $Link
#wget -p -nc -T 15 --retry-connrefused=on -l1 -A "*.gif,*.png,*.jpg,*.jpeg,*.JPG" -P $Path $Link
#wget -c -T 15 --retry-connrefused=on -P $Path $Link
#wget -c http://files.adme.ru/files/news/part_54/549605/{1..27}.jpg
wget -O - $Link | grep -o 'http://.*\.jpg' | xargs wget -t 0 -c -T 15 --retry-connrefused=on -P $Path
Res=$?
echo "Res="$Res
#if [ $Res = 0 ]; then
#apt-get -y --force-yes --fix-missing upgrade
#apt-get -y install gimp libreoffice inkscape firefox
#Res=$?
#echo "Res2="$Res
#fi
sleep 5
done
#poweroff
#pm-suspend