+ ping -c 1 192.168.100.1
+ sleep 5
+ true
+ sleep 3
+ oldstatus=
+ endWait=1257256890
+ date +%s
+ [ STATUS = STATUS ]
+ [ STATUS = RESTART ]
+ local oldstatus status progress
+ waitMax=400
+ modem_MOTOROLA_DEFAULT
+ [ 1 = 3 ]
+ [ 1 -ge 2 ]
+ echo -n Kabelmodem MOTOROLA_DEFAULT -- STATUS
+ rm -f /var/tmp/fritzload4/dl_progress.msg
+ local message=Kabelmodem MOTOROLA_DEFAULT -- STATUS type=dl
+ curl_msg Kabelmodem MOTOROLA_DEFAULT -- STATUS
+ [ 1 = 0 ]
14:54:49 Kabelmodem MOTOROLA_DEFAULT -- STATUS
+ echo 14:54:49 Kabelmodem MOTOROLA_DEFAULT -- STATUS
+ date +%H:%M:%S
+ echo -n 37
+ [ 37 -ge 100 ]
+ messageCount=37
+ curl_msg_update
+ print Kabelmodem MOTOROLA_DEFAULT -- STATUS 1
+ local modem=MOTOROLA_DEFAULT action=STATUS waitMax=300 endWait msg failed=0
+ restart_cable_modem MOTOROLA_DEFAULT STATUS
+ [ MOTOROLA_DEFAULT = SCRIPT ]
+ [ -n MOTOROLA_DEFAULT -a MOTOROLA_DEFAULT != OFF ]
+ return
+ [ 0 = 0 ]
14:54:49 MAC Änderung erfolgreich
+ echo 14:54:49 MAC Änderung erfolgreich
+ date +%H:%M:%S
+ echo -n 36
+ [ 36 -ge 100 ]
+ messageCount=36
+ curl_msg_update
+ print MAC Änderung erfolgreich
+ [ 00:1a:4f:b3:24:16 != 00:1a:4f:b3:24:16 ]
+ newMac=00:1a:4f:b3:24:16
+ return 0
+ [ -z 00:1a:4f:b3:24:16 ]
+ mac=00:1a:4f:b3:24:16
+ rm -f /var/tmp/fritzload4/mac2.htm
+ sed -n s,.*value="\([^\"]*\).*,\1,p
+ grep env:settings/macdsl /var/tmp/fritzload4/mac2.htm
+ [ 0 = 0 ]
+ /var/media/ftp/uStor01/XXX./bin/curl -so /var/tmp/fritzload4/mac2.htm http://192.168.178.1/XXX-bin/webcm --max-time 30 -d login:command/password=XXX -d sid= -d getpage=../html/de/menus/menu2.html&var:pagename=pppoe&var:menu=internet&var:activtype=pppoe
+ local i=2
+ _getmacWEB 2
+ [ WEB = WEB ]
+ mac=
+ local change=WEB i=2
+ getmac WEB 2
+ break
+ [ ! -s /var/tmp/fritzload4/mac.htm -o 0 != 0 ]
+ rVal=0 error=
+ /var/media/ftp/uStor01/XXX./bin/curl -so /var/tmp/fritzload4/mac.htm http://192.168.178.1/XXX-bin/webcm --max-time 20 -d login:command/password=XXX -d sid= -d env:settings/macdsl=00:1a:4f:b3:24:16 -d getpage=../html/de/menus/menu2.html&errorpage=../html/de/menus/menu2.html&var:pagename=pppoe&var:errorpagename=pppoe&var:menu=internet
+ return
+ [ 0 = 0 ]
14:54:43 Change MAC via WEB (00:1a:4f:b3:24:16)
+ echo 14:54:43 Change MAC via WEB (00:1a:4f:b3:24:16)
+ date +%H:%M:%S
+ echo -n 35
+ [ 35 -ge 100 ]
+ messageCount=35
+ curl_msg_update
+ print Change MAC via WEB (00:1a:4f:b3:24:16)
+ retryMac=4
+ [ 5 -gt 0 ]
+ return 0
+ [ -e /var/html/html/login_sid.xml ]
+ login
+ retryMac=5
+ [ WEB = WEB ]
+ [ 0 -eq 1 ]
+ dboxmsg FAILED: 14:54: Neustart Kabelmodem nicht erfolgreich
+ [ 0 -eq 1 ]
+ smbmsg FAILED: 14:54: Neustart Kabelmodem nicht erfolgreich
+ echo -n FAILED: 14:54: Neustart Kabelmodem nicht erfolgreich
+ rm -f /var/tmp/fritzload4/dl_progress.msg
+ local message=FAILED: 14:54: Neustart Kabelmodem nicht erfolgreich type=dl
+ curl_msg FAILED: 14:54: Neustart Kabelmodem nicht erfolgreich
FAILED: 14:54: Neustart Kabelmodem nicht erfolgreich
+ echo FAILED: 14:54: Neustart Kabelmodem nicht erfolgreich
+ echo -n 34
+ [ 34 -ge 100 ]
+ messageCount=34
+ curl_msg_update
+ local msg=FAILED: 14:54: Neustart Kabelmodem nicht erfolgreich
+ date +%H:%M
+ errmsg Neustart Kabelmodem nicht erfolgreich
+ echo -n Neustart Kabelmodem nicht erfolgreich
+ rm -f /var/tmp/fritzload4/dl_progress.msg
+ local message=Neustart Kabelmodem nicht erfolgreich type=dl
+ curl_msg Neustart Kabelmodem nicht erfolgreich
+ return 1
+ failed=1
+ return 1
+ /var/media/ftp/uStor01/XXX./bin/curl http://192.168.100.1/XXXm/RgConfig --max-time 30 -d saveChanges=0 -d RestoreFactoryDefault=0 -d ResetReq=1
+ [ RESTART = RESTART ]
+ local oldstatus status progress
+ waitMax=400
+ modem_MOTOROLA_DEFAULT
+ [ 1 = 3 ]
+ [ 1 -ge 2 ]
+ echo -n Kabelmodem MOTOROLA_DEFAULT -- RESTART
+ rm -f /var/tmp/fritzload4/dl_progress.msg
+ local message=Kabelmodem MOTOROLA_DEFAULT -- RESTART type=dl
+ curl_msg Kabelmodem MOTOROLA_DEFAULT -- RESTART
+ [ 1 = 0 ]
14:54:43 Kabelmodem MOTOROLA_DEFAULT -- RESTART
+ echo 14:54:43 Kabelmodem MOTOROLA_DEFAULT -- RESTART
+ date +%H:%M:%S
+ echo -n 33
+ [ 33 -ge 100 ]
+ messageCount=33
+ curl_msg_update
+ print Kabelmodem MOTOROLA_DEFAULT -- RESTART 1
+ local modem=MOTOROLA_DEFAULT action=RESTART waitMax=300 endWait msg failed=0
+ restart_cable_modem MOTOROLA_DEFAULT RESTART
+ [ MOTOROLA_DEFAULT = SCRIPT ]
+ [ -n MOTOROLA_DEFAULT -a MOTOROLA_DEFAULT != OFF ]
+ currMac=00:1a:4f:b3:24:16
+ return
+ [ 0 = 0 ]
14:54:43 Old MAC: 00:1a:4f:b3:24:15
+ echo 14:54:43 Old MAC: 00:1a:4f:b3:24:15
+ date +%H:%M:%S
+ echo -n 32
+ [ 32 -ge 100 ]
+ messageCount=32
+ curl_msg_update
+ print Old MAC: 00:1a:4f:b3:24:15
+ break
+ return 1
+ [ 0 != 0 ]
+ grep -c 00:1a:4f:b3:24:16 /proc/sys/urlader/environment
+ _getmacUsed 00:1a:4f:b3:24:16
+ [ 16 -gt 109 ]
+ macNumber=16
+ [ 15 != 15 -o 15 != 15 -o 15 -lt 10 ]
+ tries=49
+ [ 50 -gt 0 ]
+ local tries=50
+ macNumber=15
+ currMac=00:1a:4f:b3:24:15
+ return 0
+ [ -z 00:1a:4f:b3:24:15 ]
+ mac=00:1a:4f:b3:24:15
+ rm -f /var/tmp/fritzload4/mac1.htm
+ sed -n s,.*value="\([^\"]*\).*,\1,p
+ grep env:settings/macdsl /var/tmp/fritzload4/mac1.htm
+ [ 0 = 0 ]
+ /var/media/ftp/uStor01/XXX./bin/curl -so /var/tmp/fritzload4/mac1.htm http://192.168.178.1/XXX-bin/webcm --max-time 30 -d login:command/password=XXX -d sid= -d getpage=../html/de/menus/menu2.html&var:pagename=pppoe&var:menu=internet&var:activtype=pppoe
+ local i=1
+ _getmacWEB 1
+ [ WEB = WEB ]
+ mac=
+ local change=WEB i=1
+ getmac WEB 1
+ [ 1 = 1 ]
+ local rVal mac
+ doReconnect
+ echo -n Reconnect (old IP: XXX)
+ rm -f /var/tmp/fritzload4/dl_progress.msg /var/tmp/fritzload4/dl_progress.wait
+ local message=Reconnect (old IP: XXX) type=dl
+ curl_msg Reconnect (old IP: XXX)
+ [ 0 = 0 ]
+ return
+ [ 0 = 0 ]
14:54:40 Reconnect (old IP: XXX)
+ echo 14:54:40 Reconnect (old IP: XXX)
+ date +%H:%M:%S
+ echo -n 31
+ [ 31 -ge 100 ]
+ messageCount=31
+ curl_msg_update
+ print Reconnect (old IP: XXX)
+ local oldIP=77.20.67.139
+ sed -n s/.*IpAdrDisplay(.\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*/\1/p
+ /var/media/ftp/uStor01/XXX./bin/curl -s http://192.168.178.1/XXX-bin/webcm -d getpage=../html/de/menus/menu2.html&var:lang=de&var:pagename=home&var:menu=home&sid=&login:command/password=XXX
+ ip_address
+ return 1
+ [ 0 != 1 ]
+ wlannrec=0
+ sed -n s/^wlannorec="\([^"]*\).*/\1/p /var/media/ftp/uStor01/XXXtzload.ini
+ wlanConnected
+ wlanConnectedMsg=1
+ return 1
+ [ -n ]
+ local voipstat=
+ sed -n /"tborder mb10"/,/"mt20 pCheck25 mb5"/ s/TrQoS/&/p
+ /var/media/ftp/uStor01/XXX./bin/curl -s http://192.168.178.1/XXX-bin/webcm -d getpage=../html/de/fon/qualitytable.html -d var:lang=de -d sid= -d login:command/password=XXX
+ return
+ [ 0 = 0 ]
14:54:29 Voip-Check
+ echo 14:54:29 Voip-Check
+ date +%H:%M:%S
+ echo -n 30
+ [ 30 -ge 100 ]
+ messageCount=30
+ curl_msg_update
+ print Voip-Check
+ [ 1 = 1 ]
+ [ 1 != 1 ]
+ voipcheck=1
+ sed -n s/^voipcheck="\([^"]*\).*/\1/p /var/media/ftp/uStor01/XXXtzload.ini
+ voipcheck
+ voipCheckMsg=1
+ return 0
+ [ -e /var/html/html/login_sid.xml ]
+ login
+ return
+ [ 0 = 0 ]
14:54:29 Reconnect-Begin
+ echo 14:54:29 Reconnect-Begin
+ date +%H:%M:%S
+ echo -n 29
+ [ 29 -ge 100 ]
+ messageCount=29
+ curl_msg_update
+ print Reconnect-Begin
+ return 0
+ ln -s 2687 /var/tmp/fritzloadLocks/fritzload.reconnect.lock
+ local lock=/var/tmp/fritzloadLocks/fritzload.reconnect.lock waitMax=30 garbageEvery=5 checked=0
+ lock fritzload.reconnect
+ return 1
+ [ ! -e /var/tmp/fritzloadLocks/fritzload.reconnect.lock ]
+ local lock=/var/tmp/fritzloadLocks/fritzload.reconnect.lock
+ existsLock fritzload.reconnect
+ return 1
+ [ -e /var/media/ftp/uStor01/XXXnect4.done ]
+ reconnect_done
+ return
+ [ 0 = 0 ]
14:54:29 Reconnect-Request
+ echo 14:54:29 Reconnect-Request
+ date +%H:%M:%S
+ echo -n 28
+ [ 28 -ge 100 ]
+ messageCount=28
+ curl_msg_update
+ print Reconnect-Request
+ return 0
+ [ 1 = 0 ]
+ rm -f /var/tmp/fritzload4/ps.chk
+ [ 4 -lt 4 ]
+ continue
+ [ 4 = 4 ]
+ i=4
+ [ 3 -lt 4 ]
+ [ 0 -ne 0 -a ! -f /var/media/ftp/uStor01/XXXnnect3.now ]
+ grep -c fritzload.sh i3\ /var/tmp/fritzload4/ps.chk
+ [ 3 = 4 ]
+ i=3
+ [ 2 -lt 4 ]
+ [ 0 -ne 0 -a ! -f /var/media/ftp/uStor01/XXXnnect2.now ]
+ grep -c fritzload.sh i2\ /var/tmp/fritzload4/ps.chk
+ [ 2 = 4 ]
+ i=2
+ [ 1 -lt 4 ]
+ [ 0 -ne 0 -a ! -f /var/media/ftp/uStor01/XXXnnect1.now ]
+ grep -c fritzload.sh i1\ /var/tmp/fritzload4/ps.chk
+ [ 1 = 4 ]
+ i=1
+ [ 0 -lt 4 ]
+ [ 0 -ne 0 -a ! -f /var/media/ftp/uStor01/XXXnnect0.now ]
+ grep -c fritzload.sh i0\ /var/tmp/fritzload4/ps.chk
+ [ 0 = 4 ]
+ i=0
+ [ -1 -lt 4 ]
+ grep fritzload.sh
+ grep -v grep
+ ps w
+ local i=-1 reconnectAllowed=1
+ return 1
+ [ 1454 -ge 1155 -a 1454 -lt 1205 ]
+ [ 1155 -le 1205 ]
+ [ 1205 -gt 2400 ]
+ [ 1155 -gt 2400 ]
+ [ = 1205 ]
+ [ = 1155 ]
+ [ -z 5 ]
+ [ -z 5 ]
+ [ -z 205 ]
+ [ -z 155 ]
+ [ -z 1155 -o -z 1205 ]
+ till=1205
+ echo -n 1205
+ tr -d :;,.
+ from=1155
+ tr -d :;,.
+ echo -n 1155
+ local from=1155 till=1205 timech=1454
+ date +%H%M
+ inTime 1155 1205
+ [ 0 = 0 ]
+ [ -f /var/media/ftp/uStor01/XXXled.upload ]
+ [ -f /var/media/ftp/uStor01/XXXt.disabled ]
+ [ 0 = 0 ]
+ [ 1 = 0 ]
+ [ ! -f /var/media/ftp/uStor01/XXXnnect4.now ]
+ [ 1 = 1 ]
+ local forceReconnect=0 showMsg=0
+ reconnectEnabled 0 0
+ local showMsg= forceReconnect=0 hideMsg=0
+ reconnect
+ [ 1 = 1 ]
+ return 0
+ echo -n 1257259828
+ rm -f /var/media/ftp/uStor01/XXXnect4.done
+ acceptReconnect=1
+ [ 1 = 1 ]
+ acceptReconnect 1 1257259828
+ [ 3360 -gt 300 ]
+ [ 300 = 0 ]
+ [ 3360 = 0 ]
+ reconnectAllowed=1
+ return 0
+ [ 1 = 0 ]
+ rm -f /var/tmp/fritzload4/ps.chk
+ [ 4 -lt 4 ]
+ continue
+ [ 4 = 4 ]
+ i=4
+ [ 3 -lt 4 ]
+ [ 0 -ne 0 -a ! -f /var/media/ftp/uStor01/XXXnnect3.now ]
+ grep -c fritzload.sh i3\ /var/tmp/fritzload4/ps.chk
+ [ 3 = 4 ]
+ i=3
+ [ 2 -lt 4 ]
+ [ 0 -ne 0 -a ! -f /var/media/ftp/uStor01/XXXnnect2.now ]
+ grep -c fritzload.sh i2\ /var/tmp/fritzload4/ps.chk
+ [ 2 = 4 ]
+ i=2
+ [ 1 -lt 4 ]
+ [ 0 -ne 0 -a ! -f /var/media/ftp/uStor01/XXXnnect1.now ]
+ grep -c fritzload.sh i1\ /var/tmp/fritzload4/ps.chk
+ [ 1 = 4 ]
+ i=1
+ [ 0 -lt 4 ]
+ [ 0 -ne 0 -a ! -f /var/media/ftp/uStor01/XXXnnect0.now ]
+ grep -c fritzload.sh i0\ /var/tmp/fritzload4/ps.chk
+ [ 0 = 4 ]
+ i=0
+ [ -1 -lt 4 ]
+ grep fritzload.sh
+ grep -v grep
+ ps w
+ local i=-1 reconnectAllowed=1
+ return 1
+ [ 1454 -ge 1155 -a 1454 -lt 1205 ]
+ [ 1155 -le 1205 ]
+ [ 1205 -gt 2400 ]
+ [ 1155 -gt 2400 ]
+ [ = 1205 ]
+ [ = 1155 ]
+ [ -z 5 ]
+ [ -z 5 ]
+ [ -z 205 ]
+ [ -z 155 ]
+ [ -z 1155 -o -z 1205 ]
+ till=1205
+ tr -d :;,.
+ echo -n 1205
+ from=1155
+ tr -d :;,.
+ echo -n 1155
+ local from=1155 till=1205 timech=1454
+ date +%H%M
+ inTime 1155 1205
+ [ 0 = 0 ]
+ [ -f /var/media/ftp/uStor01/XXXled.upload ]
+ [ -f /var/media/ftp/uStor01/XXXt.disabled ]
+ [ 0 = 0 ]
+ [ 1 = 0 ]
+ [ 0 = 1 ]
+ local forceReconnect=0 showMsg=1
+ reconnectEnabled 0 1
+ waitReconnectTime=1257259828
+ date +%s
+ echo -n 1257259827
+ date +%s
+ echo -n netload-free: Warte 3360 Sekunden