+ [ 1277066437 -le 1277065848 ]
+ reconnect_done
+ [ -e /var/media/ftp/USBDISKPro-01/fritzload/bin/../tmp/signal.reconnect1.done ]
+ return 1
+ true
+ date +%s
+ cur=1277066447
+ local s=1
+ [ 1 -le 0 ]
+ [ 1 -gt 10 ]
+ sleep 1
+ [ 1277066447 -le 1277065848 ]
+ reconnect_done
+ [ -e /var/media/ftp/USBDISKPro-01/fritzload/bin/../tmp/signal.reconnect1.done ]
+ return 1
+ true
+ date +%s
+ cur=1277066448
+ local s=0
+ [ 0 -le 0 ]
+ break
+ acceptReconnect 0
+ [ 0 = 1 ]
+ [ 1 = 1 ]
+ acceptReconnect=0
+ rm -f /var/media/ftp/USBDISKPro-01/fritzload/bin/../tmp/signal.reconnect1.now /var/media/ftp/USBDISKPro-01/fritzload/bin/../tmp/signal.reconnect1.done
+ return 0
+ return 0
+ [ 31 -gt 300 ]
+ return 1
+ [ 1 -eq 2 ]
+ url=
+ grep document.dlf.action /var/tmp/fritzload1/dl.response.htm
+ sed -e s,.*http://rs[0-9]*\([^.]*\)\.rapidshare\.com.*,\1; ,
+ tr -d \n
+ mirrors=tl2; tl; eun; l35; tl3; tg; tl4; l3; l34; l32; dt; l33;
+ [ -z tl2; tl; eun; l35; tl3; tg; tl4; l3; l34; l32; dt; l33; ]
+ echo Mögliche Mirrors: (tl2; tl; eun; l35; tl3; tg; tl4; l3; l34; l32; dt; l33; )
Mögliche Mirrors: (tl2; tl; eun; l35; tl3; tg; tl4; l3; l34; l32; dt; l33; )
+ [ selected != selected -a -n selected ]
+ [ -z ]
+ grep http://
+ sed -n s,.*=\"dlf\" action=\"\(<A href="http://rs[^\"]*\).*,\1,p">http://rs[^\"]*\).*,\1,p /var/tmp/fritzload1/dl.response.htm
+ sed -e 1!d
+ url=http://rs893dt.rapidshare.com/files/389071275/1542973/xxx.rar
+ sed s,.*http://rs[0-9]*\([^.]*\).*,\1,
+ echo -n [URL]http://rs893dt.rapidshare.com/files/389071275/xxx.rar[/URL]
+ s=dt
+ echo Verwende von Rapidshare zugewiesenen Server (dt).
Verwende von Rapidshare zugewiesenen Server (dt).
+ [ -z [URL]http://rs893dt.rapidshare.com/files/389071275/1542973/xx.rar[/URL] ]
+ rand 1 4
+ local min=1 max=4 n
+ true
+ random_number
+ sed -n s/[^0-9]//g; /^./ { s/^\(.\).*$/\1/; p; q }
+ n=6
+ [ 6 -ge 1 -a 6 -le 4 ]
+ true
+ random_number
+ sed -n s/[^0-9]//g; /^./ { s/^\(.\).*$/\1/; p; q }
+ n=1
+ [ 1 -ge 1 -a 1 -le 4 ]
+ echo -n 1
+ break
+ rand 0 9
+ local min=0 max=9 n
+ true
+ random_number
+ sed -n s/[^0-9]//g; /^./ { s/^\(.\).*$/\1/; p; q }
+ n=2
+ [ 2 -ge 0 -a 2 -le 9 ]
+ echo -n 2
+ break
+ rand 1 4
+ local min=1 max=4 n
+ true
+ random_number
+ sed -n s/[^0-9]//g; /^./ { s/^\(.\).*$/\1/; p; q }
+ n=1
+ [ 1 -ge 1 -a 1 -le 4 ]
+ echo -n 1
+ break
+ rand 0 9
+ local min=0 max=9 n
+ true
+ random_number
+ sed -n s/[^0-9]//g; /^./ { s/^\(.\).*$/\1/; p; q }
+ n=8
+ [ 8 -ge 0 -a 8 -le 9 ]
+ echo -n 8
+ break
+ local rX=12 rY=18
+ download [URL]http://rs893dt.rapidshare.com/files/389071275/1542973/xx.rar[/URL] xxx.rar --data "mirror=on&x=12&y=18" 13831855
+ /var/media/ftp/USBDISKPro-01/fritzload/bin/../bin/busybox26 basename xxrar
+ local url=http://rs893dt.rapidshare.com/files/389071275/1542973/xxx.rar bname=xxx.rar options=--data "mirror=on&x=12&y=18" chkFileSize=13831855 forceFileName=0
+ local failedContentHeader=.*\(text\).* h_file h_size h_type filepath logbar
+ filename xxx.rar
+ echo -n xxx.rar
+ tr -c A-Za-z0-9_#\/\-\. _
+ filename=xxx.rar
+ cleanup
+ local type=dl
+ [ 1 = 0 ]
+ local tempdir= storedir=
+ [ -z xxx.rar ]
+ tempdir=/var/media/ftp/USBDISK2-0-01/tmp
+ storedir=/var/media/ftp/USBDISK2-0-01
+ mkdir -pm 0777 /var/media/ftp/USBDISK2-0-01/tmp
+ alreadyLoaded /var/media/ftp/USBDISK2-0-01/xxx.rar
+ [ 0 = 1 ]
+ local filename=/var/media/ftp/USBDISK2-0-01/xxx.rar storedir
+ [ -z ]
+ storedir=/var/media/ftp/USBDISK2-0-01
+ filename=xxx.rar
+ [ -f /var/media/ftp/USBDISK2-0-01/xxx.rar ]
+ return 1
+ [ --data "mirror=on&x=12&y=18" = - ]
+ [ 13831855 = - ]
+ [ .*\(text\).* = - ]
+ download_limit
+ check_free_diskspace /var/media/ftp/USBDISK2-0-01 200
+ local dir=/var/media/ftp/USBDISK2-0-01 minfree=200 free=
+ [ 200 = 0 ]
+ [ -d /var/media/ftp/USBDISK2-0-01 ]
+ msg=0
+ true
+ free_diskspace /var/media/ftp/USBDISK2-0-01
+ grep -A 1 ^/
+ /var/media/ftp/USBDISKPro-01/fritzload/bin/../bin/busybox26 df -m /var/media/ftp/USBDISK2-0-01
+ sed -n :a;$!N;$!ba;s/\n */ /g;p
+ sed -n s,[^/]*[^ ]* *[0-9]* *[0-9]* *\([0-9]*\) .*,\1,p
+ tr -d \n\r
+ free=7612
+ [ -n 7612 ]
+ [ 0 = 0 ]
+ echo Freier Speicher auf /var/media/ftp/USBDISK2-0-01: 7612 Mbyte
Freier Speicher auf /var/media/ftp/USBDISK2-0-01: 7612 Mbyte
+ local sbar0 sbar1 sbar2 sbar3 sbar4 sbar5 sbar6 sbar7 sbar8 sbar9 sbar10 sbar11 sbar12
+ local i=-1 reservedSpace=0 totalSize receivedSize
+ [ -1 -lt 2 ]
+ i=0
+ [ 0 = 1 ]
+ curl_speedbar_vars /var/tmp/fritzload0/dl.progress
+ local file=/var/tmp/fritzload0/dl.progress i
+ sbar0=
+ [ -f /var/tmp/fritzload0/dl.progress ]
+ return 1
+ [ 0 -lt 2 ]
+ i=1
+ [ 1 = 1 ]
+ continue
+ [ 1 -lt 2 ]
+ i=2
+ [ 2 = 1 ]
+ curl_speedbar_vars /var/tmp/fritzload2/dl.progress
+ local file=/var/tmp/fritzload2/dl.progress i
+ sbar0=
+ [ -f /var/tmp/fritzload2/dl.progress ]
+ return 1
+ [ 2 -lt 2 ]
+ [ 0 -ne 0 ]
+ [ 7612 -lt 200 ]
+ break
+ limit_bandwidth
+ [ 0 = 1 ]
+ dllimit=1000000k
+ ullimit=1000000k
+ curl_msg Download beendet: xxx.rar
+ local message=Download beendet: xxx.rar type=dl
+ rm -f /var/tmp/fritzload1/dl.progress.msg /var/tmp/fritzload1/dl.progress.wait
+ echo -n Download beendet: xxx.rar
+ echo URL-Download (T:1/R:5): [URL]http://rs893dt.rapidshare.com/files/389071275/1542973/xx.rar[/URL] (File: xxx.rar)
URL-Download (T:1/R:5): [URL]http://rs893dt.rapidshare.com/files/389071275/1542973/xx.rar[/URL] (File: xxx.rar)
+ echo -n rapidshare_com-free: xxx.rar
+ curl_msg_update
+ messageCount=6
+ [ 6 -ge 100 ]
+ echo -n 6
+ local storeFile=/var/media/ftp/USBDISK2-0-01/tmp/xx.rar.part
+ [ 0 = 1 ]
+ /var/media/ftp/USBDISKPro-01/fritzload/bin/../bin/curl -1 --location --speed-limit 500b --speed-time 400 --limit-rate 1000000k --user-agent User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 --dump-header /var/tmp/fritzload1/dl.head --output /var/media/ftp/USBDISK2-0-01/tmp/xx.rar.part [URL]http://rs893dt.rapidshare.com/files/389071275/1542973/xxx.rar[/URL] --globoff --write-out %{http_code} --data "mirror=on&x=12&y=18"
+ grep ; [fF]ilename= /var/tmp/fritzload1/dl.head
+ sed -n s:.*; [fF]ilename=\"\?\([^\"]*\).*:\1:p
+ sed -e $!d
+ tr -d \n\r\t
+ sed -e s,\ *$,,
+ h_file=xxx.rar
+ grep ^[cC]ontent-[lL]ength: /var/tmp/fritzload1/dl.head
+ sed -n s,[cC]ontent-[lL]ength: \([0-9]*\).*,\1,p
+ sed -e $!d
+ h_size=13831855
+ sed -n s,[cC]ontent-[tT]ype: \(.*\),\1,p
+ grep ^[cC]ontent-[tT]ype: /var/tmp/fritzload1/dl.head
+ sed -e $!d
+ tr -d \n\r\t
+ h_type=application/octet-stream
+ curl_speedbar_log /var/tmp/fritzload1/dl.progress
+ local sbar0 sbar1 sbar2 sbar3 sbar4 sbar5 sbar6 sbar7 sbar8 sbar9 sbar10 sbar11 sbar12
+ curl_speedbar_vars /var/tmp/fritzload1/dl.progress
+ local file=/var/tmp/fritzload1/dl.progress i
+ sbar0=
+ [ -f /var/tmp/fritzload1/dl.progress ]
+ i=1
+ /var/media/ftp/USBDISKPro-01/fritzload/bin/../bin/busybox26 tail -c 77 /var/tmp/fritzload1/dl.progress
+ tr -s \n
+ eval sbar1=0
+ sbar1=0
+ i=2
+ eval sbar2=13.1M
+ sbar2=13.1M
+ i=3
+ eval sbar3=100
+ sbar3=100
+ i=4
+ eval sbar4=13.1M
+ sbar4=13.1M
+ i=5
+ eval sbar5=0
+ sbar5=0
+ i=6
+ eval sbar6=21
+ sbar6=21
+ i=7
+ eval sbar7=122k
+ sbar7=122k
+ i=8
+ eval sbar8=0
+ sbar8=0
+ i=9
+ eval sbar9=0:01:49
+ sbar9=0:01:49
+ i=10
+ eval sbar10=0:01:49
+ sbar10=0:01:49
+ i=11
+ eval sbar11=--:--:--
+ sbar11=--:--:--
+ i=12
+ eval sbar12=72690
+ sbar12=72690
+ i=13
+ [ -n ]
+ [ -e /var/tmp/fritzload1/dl.progress.file ]
+ cat /var/tmp/fritzload1/dl.progress.file
+ sbar0=rapidshare_com-free: xxx.rar
+ return 0
+ echo -n time:0:01:49 size:13.1M speed:122k
+ return 1
+ logbar=time:0:01:49 size:13.1M speed:122k
+ rm -f /var/tmp/fritzload1/dl.progress /var/tmp/fritzload1/dl.progress.file /var/tmp/fritzload1/dl.progress.msg
+ [ 0 = 1 ]
+ [ -n .*\(text\).* ]
+ sed -e s/.*\(text\).*//
+ echo -n application/octet-stream
+ [ -z application/octet-stream ]
+ verify_data /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part 100
+ [ 0 = 1 ]
+ local filename=/var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part minSize=100 checkSize= forbiddenContent=
+ local storedir
+ [ -z ]
+ storedir=/var/media/ftp/USBDISK2-0-01/tmp
+ filename=xxx.rar.part
+ filesize /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part
+ local file=/var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part size
+ [ ! -f /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part ]
+ lock /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part
+ local lock=/var/tmp/fritzloadLocks/xxx.rar.part.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 2343 /var/tmp/fritzloadLocks/xxx.rar.part.lock
+ return 0
+ ls -l /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part
+ tr -s
+ size=-rwxrwxrwx 1 root root 13831855 Jun 20 22:42 /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part
+ size=13831855 Jun 20 22:42 /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part
+ echo -n 13831855
+ unlock /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part
+ rm -f /var/tmp/fritzloadLocks/xxx.rar.part.lock
+ size=13831855
+ [ 100 -gt 0 -a 13831855 -lt 100 ]
+ [ 13831855 -lt ]
+ return 0
+ [ -n 13831855 ]
+ filesize /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part
+ local file=/var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part size
+ [ ! -f /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part ]
+ lock /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part
+ local lock=/var/tmp/fritzloadLocks/xxx.rar.part.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 2343 /var/tmp/fritzloadLocks/xxx.rar.part.lock
+ return 0
+ ls -l /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part
+ tr -s
+ size=-rwxrwxrwx 1 root root 13831855 Jun 20 22:42 /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part
+ size=13831855 Jun 20 22:42 /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part
+ echo -n 13831855
+ unlock /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part
+ rm -f /var/tmp/fritzloadLocks/xxx.rar.part.lock
+ local chksize=13831855
+ [ 13831855 != 13831855 ]
+ rm -f /xxx.rar.failed
+ [ 0 = 0 -a -n xxx.rar -a xxx.rar != xxx.rar ]
+ mv -f /var/media/ftp/USBDISK2-0-01/tmp/xxx.rar.part /var/media/ftp/USBDISK2-0-01/xxx.rar
+ print Download-OK: time:0:01:49 size:13.1M speed:122k 1
+ curl_msg_update
+ messageCount=7
+ [ 7 -ge 100 ]
+ echo -n 7
+ date +%H:%M:%S
+ echo 22:42:49 Download-OK: time:0:01:49 size:13.1M speed:122k
22:42:49 Download-OK: time:0:01:49 size:13.1M speed:122k
+ [ 1 = 0 ]
+ curl_msg Download-OK: time:0:01:49 size:13.1M speed:122k
+ local message=Download-OK: time:0:01:49 size:13.1M speed:122k type=dl
+ rm -f /var/tmp/fritzload1/dl.progress*
+ echo -n Download-OK: time:0:01:49 size:13.1M speed:122k
+ [ 1 -ge 2 ]
+ [ 1 = 3 ]
+ success=1
+ param2file=/var/media/ftp/USBDISK2-0-01/xxx.rar
+ return 0
+ _rapidshare_download_success xxx.rar
+ local file=xxx.rar failed=
+ verify_data xxx.rar 100 50000 <title>RapidShare
+ [ 0 = 1 ]
+ local filename=xxx.rar minSize=100 checkSize=50000 forbiddenContent=<title>RapidShare
+ local storedir
+ [ -z xxx.rar ]
+ storedir=/var/media/ftp/USBDISK2-0-01
+ filesize /var/media/ftp/USBDISK2-0-01/xxx.rar
+ local file=/var/media/ftp/USBDISK2-0-01/xxx.rar size
+ [ ! -f /var/media/ftp/USBDISK2-0-01/xxx.rar ]
+ lock /var/media/ftp/USBDISK2-0-01/xxx.rar
+ local lock=/var/tmp/fritzloadLocks/xxx.rar.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 2343 /var/tmp/fritzloadLocks/xxx.rar.lock
+ return 0
+ ls -l /var/media/ftp/USBDISK2-0-01/xxx.rar
+ tr -s
+ size=-rwxrwxrwx 1 root root 13831855 Jun 20 22:42 /var/media/ftp/USBDISK2-0-01/xxx.rar
+ size=13831855 Jun 20 22:42 /var/media/ftp/USBDISK2-0-01/xxx.rar
+ echo -n 13831855
+ unlock /var/media/ftp/USBDISK2-0-01/xxx.rar
+ rm -f /var/tmp/fritzloadLocks/xxx.rar.lock
+ size=13831855
+ [ 100 -gt 0 -a 13831855 -lt 100 ]
+ [ 13831855 -lt 50000 ]
+ return 0
+ return 0
+ break
+ retVal=0
+ cleanup
+ local type=dl
+ [ 1 = 0 ]
+ [ 0 -eq 2 ]
+ [ 0 = 1 ]
+ [ 0 -eq 3 ]
+ [ 1 -eq 0 ]
+ download_completed [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL]
+ local url=http://rapidshare.com/files/389071275/xxx.rar
+ print URL [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] erfolgreich geladen 3
+ curl_msg_update
+ messageCount=8
+ [ 8 -ge 100 ]
+ echo -n 8
+ date +%H:%M:%S
+ echo 22:42:49 URL [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] erfolgreich geladen
22:42:49 URL [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] erfolgreich geladen
+ [ 3 = 0 ]
+ curl_msg URL [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] erfolgreich geladen
+ local message=URL [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] erfolgreich geladen type=dl
+ rm -f /var/tmp/fritzload1/dl.progress.msg
+ echo -n URL [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] erfolgreich geladen
+ [ 3 -ge 2 ]
+ smbmsg URL [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] erfolgreich geladen
+ [ 0 -eq 1 ]
+ [ 3 = 3 ]
+ dboxmsg URL [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] erfolgreich geladen
+ [ 0 -eq 1 ]
+ lock /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_jobs1.txt.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 2343 /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ return 0
+ lock /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_finished1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_finished1.txt.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 2343 /var/tmp/fritzloadLocks/dl_finished1.txt.lock
+ return 0
+ lock /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_failed1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_failed1.txt.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 2343 /var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ return 0
+ remove_line [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ local line=http://rapidshare.com/files/389071275/xxx.rar file=/var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt unlock=0
+ [ -n [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] -a -f /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt ]
+ alreadyLocked /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ __read_lock_pid /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ [ -L /var/tmp/fritzloadLocks/dl_jobs1.txt.lock ]
+ ls -l /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ sed -n s,.* -> \([0-9][0-9]*\)$,\1,p
+ [ 2343 = 2343 ]
+ return 0
+ tr -d \r\t
+ grep -v ^http://rapidshare.com/files/389071275/xxx.rar$
+ mv /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt.tmp /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ remove_url [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ url_string [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL]
+ sed -e s,^[ \ R]*\([0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]-[0-9][0-9]:[0-9][0-9];\)\?[ \ ]*\([^ ;]*\)[ \ ]*\(;.*\)\?$,\2,;\
s,\ *$,,;\
s,.*\(https\?\|ftp\)://,\1://,I;\
s/%3F/?/
+ echo -n [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL]
+ tr -s /
+ sed -e s,\(https\?\|ftp\):/,\1://,
+ local file=/var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt url=http://rapidshare.com/files/389071275/xxx.rar unlock=0
+ [ -n [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] -a -f /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt ]
+ alreadyLocked /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ __read_lock_pid /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ [ -L /var/tmp/fritzloadLocks/dl_jobs1.txt.lock ]
+ ls -l /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ sed -n s,.* -> \([0-9][0-9]*\)$,\1,p
+ [ 2343 = 2343 ]
+ return 0
+ grep -v ^[ \ ]*\([0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]-[0-9][0-9]:[0-9][0-9];[ \ ]*\)\?[url]http://rapidshare.com/files/389071275/xxx.rar[/url][ \ ]*\(;.*\)\?$
+ tr -d \r\t
+ mv /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt.tmp /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ [ 0 = 1 ]
+ [ 0 = 1 ]
+ remove_url [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_finished1.txt
+ url_string [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL]
+ echo -n [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL]
+ sed -e s,^[ \ R]*\([0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]-[0-9][0-9]:[0-9][0-9];\)\?[ \ ]*\([^ ;]*\)[ \ ]*\(;.*\)\?$,\2,;\
s,\ *$,,;\
s,.*\(https\?\|ftp\)://,\1://,I;\
s/%3F/?/
+ tr -s /
+ sed -e s,\(https\?\|ftp\):/,\1://,
+ local file=/var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_finished1.txt url=http://rapidshare.com/files/389071275/xxx.rar unlock=0
+ [ -n [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] -a -f /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_finished1.txt ]
+ alreadyLocked /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_finished1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_finished1.txt.lock
+ __read_lock_pid /var/tmp/fritzloadLocks/dl_finished1.txt.lock
+ [ -L /var/tmp/fritzloadLocks/dl_finished1.txt.lock ]
+ ls -l /var/tmp/fritzloadLocks/dl_finished1.txt.lock
+ sed -n s,.* -> \([0-9][0-9]*\)$,\1,p
+ [ 2343 = 2343 ]
+ return 0
+ tr -d \r\t
+ grep -v ^[ \ ]*\([0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]-[0-9][0-9]:[0-9][0-9];[ \ ]*\)\?[url]http://rapidshare.com/files/389071275/xxx.rar[/url][ \ ]*\(;.*\)\?$
+ mv /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_finished1.txt.tmp /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_finished1.txt
+ [ 0 = 1 ]
+ echo 20.06.10-22:40; [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL]
+ remove_url [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_failed1.txt
+ url_string [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL]
+ echo -n [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL]
+ sed -e s,^[ \ R]*\([0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]-[0-9][0-9]:[0-9][0-9];\)\?[ \ ]*\([^ ;]*\)[ \ ]*\(;.*\)\?$,\2,;\
s,\ *$,,;\
s,.*\(https\?\|ftp\)://,\1://,I;\
s/%3F/?/
+ tr -s /
+ sed -e s,\(https\?\|ftp\):/,\1://,
+ local file=/var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_failed1.txt url=http://rapidshare.com/files/389071275/xxx.rar unlock=0
+ [ -n [URL]http://rapidshare.com/files/389071275/xxx.rar[/URL] -a -f /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_failed1.txt ]
+ alreadyLocked /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_failed1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ __read_lock_pid /var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ [ -L /var/tmp/fritzloadLocks/dl_failed1.txt.lock ]
+ sed -n s,.* -> \([0-9][0-9]*\)$,\1,p
+ ls -l /var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ [ 2343 = 2343 ]
+ return 0
+ tr -d \r\t
+ grep -v ^[ \ ]*\([0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]-[0-9][0-9]:[0-9][0-9];[ \ ]*\)\?[url]http://rapidshare.com/files/389071275/xxx.rar[/url][ \ ]*\(;.*\)\?$
+ mv /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_failed1.txt.tmp /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_failed1.txt
+ [ 0 = 1 ]
+ unlock /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ rm -f /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ unlock /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_finished1.txt
+ rm -f /var/tmp/fritzloadLocks/dl_finished1.txt.lock
+ unlock /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/dl_failed1.txt
+ rm -f /var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ countdl=1
+ print 1 Dateien heruntergeladen 3
+ curl_msg_update
+ messageCount=9
+ [ 9 -ge 100 ]
+ echo -n 9
+ date +%H:%M:%S
+ echo 22:42:54 1 Dateien heruntergeladen
22:42:54 1 Dateien heruntergeladen
+ [ 3 = 0 ]
+ curl_msg 1 Dateien heruntergeladen
+ local message=1 Dateien heruntergeladen type=dl
+ rm -f /var/tmp/fritzload1/dl.progress.msg
+ echo -n 1 Dateien heruntergeladen
+ [ 3 -ge 2 ]
+ smbmsg 1 Dateien heruntergeladen
+ [ 0 -eq 1 ]
+ [ 3 = 3 ]
+ dboxmsg 1 Dateien heruntergeladen
+ [ 0 -eq 1 ]
+ checkdiskspace
+ grep targetdir= /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/fritzload.ini
+ eval targetdir="/var/media/ftp/USBDISK2-0-01/"
+ targetdir=/var/media/ftp/USBDISK2-0-01/
+ /var/media/ftp/USBDISKPro-01/fritzload/bin/../bin/busybox26 df -m /var/media/ftp/USBDISK2-0-01/
+ sed -n :a;$!N;$!ba;s/\n */ /g;p
+ grep -A 1 ^/
+ tr -s
+ tr -d \n
+ grep -o [0-9]\+%
+ tr -d %
+ local spaceused=0
+ [ 0 -gt 90 ]
+ transferDownload /var/media/ftp/USBDISK2-0-01/xxx.rar
+ NASTRANSFERDONE=0
+ local file=/var/media/ftp/USBDISK2-0-01/xxx.rar f
+ [ -z FILE -o FILE = OFF ]
+ _checkFILESinDLDIR
+ DLDIR=/var/media/ftp/USBDISKPro-01/fritzload/bin/../downloads
+ egrep -v failed$
+ ls -l /var/media/ftp/USBDISKPro-01/fritzload/bin/../downloads
+ egrep -cv tmp$
+ FILECOUNT=1
+ [ 1 -lt 1 ]
+ return 0
+ [ 0 -ne 0 ]
+ [ FILE = FILE ]
+ [ -n /var/media/ftp/USBDISK2-0-01/xxx.rar ]
+ transferDownloadFile /var/media/ftp/USBDISK2-0-01/xxx.rar
+ local file=/var/media/ftp/USBDISK2-0-01/xxx.rar targetDir= params= url= try=1
+ transferDir=
+ targetDir=
+ [ -n ]
+ [ 1 = 1 ]
+ targetDir=/var/media/cifs
+ [ -c /var/media/cifs ]
+ msg Transfer: /var/media/ftp/USBDISK2-0-01/xxx.rar >>> /var/media/cifs
+ curl_msg_update
+ messageCount=10
+ [ 10 -ge 100 ]
+ echo -n 10
+ date +%H:%M
+ echo MSG: 22:42: Transfer: /var/media/ftp/USBDISK2-0-01/xxx.rar >>> /var/media/cifs
MSG: 22:42: Transfer: /var/media/ftp/USBDISK2-0-01/xxx.rar >>> /var/media/cifs
+ [ = 1 ]
+ [ -d /var/media/cifs/ ]
+ mkdir -pm 0777 /var/media/cifs/
+ local max=3
+ touch /var/media/cifs/fritzload_chk.tmp
+ rm -f /var/media/cifs/fritzload_chk.tmp
+ /var/media/ftp/USBDISKPro-01/fritzload/bin/../bin/busybox26 df -k /var/media/cifs
+ grep -A 1 ^/
+ sed -n :a;$!N;$!ba;s/\n */ /g;p
+ four
+ echo
+ DSIZE=
+ ls -l /var/media/ftp/USBDISK2-0-01/xxx.rar
+ fifth -rwxrwxrwx 1 root root 13831855 Jun 20 22:42 /var/media/ftp/USBDISK2-0-01/xxx.rar
+ echo 13831855
+ FSIZE=13831855
+ [ 13831855 -gt ]
+ return
+ add2unrar /var/media/ftp/USBDISK2-0-01/xxx.rar
+ unrarFileBase /var/media/ftp/USBDISK2-0-01/xxx.rar
+ local file=var/media/ftp/USBDISK2-0-01/xxx.rar
+ echo -n var/media/ftp/USBDISK2-0-01/xxx.rar
+ sed -n s/\.[pP][aA][rR][tT][0-9]*\.[rR][aA][rR]$//p
+ base=
+ [ -z ]
+ echo -n var/media/ftp/USBDISK2-0-01/xxx.rar
+ sed -n s/\.[rR][aA0-9][rR0-9][0-9]*$//p
+ base=var/media/ftp/USBDISK2-0-01/xxx
+ echo var/media/ftp/USBDISK2-0-01/xxx
+ local file=/var/media/ftp/USBDISK2-0-01/xxx.rar base=var/media/ftp/USBDISK2-0-01/xxx
+ unrar_settings
+ local ini=/var/media/ftp/USBDISKPro-01/fritzload/bin/../config/unrar.ini
+ [ ! -f /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/unrar.ini ]
+ . /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/unrar.ini
unrarActive=""
+ unrarActive=
unrar_extractDir="/var/media/ftp/USBDISK2-0-01/"
+ unrar_extractDir=/var/media/ftp/USBDISK2-0-01/
unrar_moveDeleted=""
+ unrar_moveDeleted=
unrar_deleteArchives="-D"
+ unrar_deleteArchives=-D
unrar_packageSubDir="-P"
+ unrar_packageSubDir=-P
unrar_packageSubDirCount="1"
+ unrar_packageSubDirCount=1
unrar_DeepExtract="-x"
+ unrar_DeepExtract=-x
+ return 0
+ [ != 1 ]
+ return
+ curl_msg_update
+ messageCount=11
+ [ 11 -ge 100 ]
+ echo -n 11
+ cleanlog /var/media/ftp/USBDISKPro-01/fritzload/bin/../log/download1.txt
+ local logfile=/var/media/ftp/USBDISKPro-01/fritzload/bin/../log/download1.txt
+ [ ! -f /var/media/ftp/USBDISKPro-01/fritzload/bin/../log/download1.txt ]
+ lock /var/media/ftp/USBDISKPro-01/fritzload/bin/../log/download1.txt
+ local lock=/var/tmp/fritzloadLocks/download1.txt.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 2343 /var/tmp/fritzloadLocks/download1.txt.lock
+ return 0
+ /var/media/ftp/USBDISKPro-01/fritzload/bin/../bin/busybox26 tail -n 10000 /var/media/ftp/USBDISKPro-01/fritzload/bin/../log/download1.txt
+ rm -f /var/media/ftp/USBDISKPro-01/fritzload/bin/../log/download1.txt.tmp
+ unlock /var/media/ftp/USBDISKPro-01/fritzload/bin/../log/download1.txt
+ rm -f /var/tmp/fritzloadLocks/download1.txt.lock
+ stopping 1
+ local type=dl
+ local stopFile=/var/media/ftp/USBDISKPro-01/fritzload/bin/../tmp/signal.stop1.dl
+ [ -f /var/media/ftp/USBDISKPro-01/fritzload/bin/../tmp/signal.stop1.dl ]
+ [ -f /var/media/ftp/USBDISKPro-01/fritzload/bin/../tmp/signal.restart1.dl ]
+ return 1
+ sleep 1
+ true
+ isEmpty /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ file=/var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ lock /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_jobs1.txt.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 2343 /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ return 0
+ grep -c . /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ [ 0 = 0 ]
+ unlock /var/media/ftp/USBDISKPro-01/fritzload/cgi/../config/dl_jobs1.txt
+ rm -f /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ return 0
+ print Downloadliste ist leer. 2
+ curl_msg_update
+ messageCount=12
+ [ 12 -ge 100 ]
+ echo -n 12
+ date +%H:%M:%S
+ echo 22:42:59 Downloadliste ist leer.
22:42:59 Downloadliste ist leer.
+ [ 2 = 0 ]
+ curl_msg Downloadliste ist leer.
+ local message=Downloadliste ist leer. type=dl
+ rm -f /var/tmp/fritzload1/dl.progress.msg
+ echo -n Downloadliste ist leer.
+ [ 2 -ge 2 ]
+ smbmsg Downloadliste ist leer.
+ [ 0 -eq 1 ]
+ [ 2 = 3 ]
+ [ = 1 ]
ash: 1: unknown operand
+ break
+ unrarit
+ unrar_settings
+ local ini=/var/media/ftp/USBDISKPro-01/fritzload/bin/../config/unrar.ini
+ [ ! -f /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/unrar.ini ]
+ . /var/media/ftp/USBDISKPro-01/fritzload/bin/../config/unrar.ini
unrarActive=""
+ unrarActive=
unrar_extractDir="/var/media/ftp/USBDISK2-0-01/"
+ unrar_extractDir=/var/media/ftp/USBDISK2-0-01/
unrar_moveDeleted=""
+ unrar_moveDeleted=
unrar_deleteArchives="-D"
+ unrar_deleteArchives=-D
unrar_packageSubDir="-P"
+ unrar_packageSubDir=-P
unrar_packageSubDirCount="1"
+ unrar_packageSubDirCount=1
unrar_DeepExtract="-x"
+ unrar_DeepExtract=-x
+ return 0
+ [ != 1 ]
+ echo UNRAR: deaktiviert
UNRAR: deaktiviert
+ return 1
+ [ ! -f /var/media/ftp/USBDISKPro-01/fritzload/bin/../tmp/.transfer ]
+ touch /var/media/ftp/USBDISKPro-01/fritzload/bin/../tmp/.transfer
+ transferDownload
+ NASTRANSFERDONE=0
+ local file= f
+ [ -z FILE -o FILE = OFF ]
+ _checkFILESinDLDIR
+ DLDIR=/var/media/ftp/USBDISKPro-01/fritzload/bin/../downloads
+ egrep -v failed$
+ ls -l /var/media/ftp/USBDISKPro-01/fritzload/bin/../downloads
+ egrep -cv tmp$
+ FILECOUNT=1
+ [ 1 -lt 1 ]
+ return 0
+ [ 0 -ne 0 ]
+ [ FILE = FILE ]
+ [ -n ]
+ sleep 5
+ rm /var/media/ftp/USBDISKPro-01/fritzload/bin/../tmp/.transfer
+ dboxmsg
+ [ 0 -eq 1 ]
+ [ 0 = 1 ]
+ led 0
+ [ 0 -eq 1 ]
+ cleanup
+ local type=dl
+ [ 1 = 0 ]
print "FritzLoad beendet" 1
+ print FritzLoad beendet 1
+ curl_msg_update
+ messageCount=13
+ [ 13 -ge 100 ]
+ echo -n 13
+ date +%H:%M:%S
+ echo 22:43:05 FritzLoad beendet
22:43:05 FritzLoad beendet
+ [ 1 = 0 ]
+ curl_msg FritzLoad beendet
+ local message=FritzLoad beendet type=dl
+ rm -f /var/tmp/fritzload1/dl.progress.msg
+ echo -n FritzLoad beendet
+ [ 1 -ge 2 ]
+ [ 1 = 3 ]
if [ "$restart" = 1 ];then
echo "FritzLoad restart"
curl_msg "FritzLoad restart"
cd $pdir/bin
($0 i$instance "$action" "$opt1" "$opt2" "$opt3")&
exit
fi
+ [ = 1 ]