updated reconnect scripts
This commit is contained in:
parent
d66afd3653
commit
3e07de2258
3 changed files with 18 additions and 4 deletions
5
bash_scripts/fritzbox
Executable file
5
bash_scripts/fritzbox
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
curl 'http://fritz.box:49000/upnp/control/WANIPConn1' \
|
||||
-H 'Content-Type: text/xml; charset="utf-8"' \
|
||||
-H 'SoapAction: urn:schemas-upnp-org:service:WANIPConnection:1#ForceTermination' \
|
||||
-d '<?xml version="1.0" encoding="utf-8"?> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <u:ForceTermination xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1" /> </s:Body> </s:Envelope>'
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
curl 'http://fritz.box:49000/upnp/control/WANIPConn1' \
|
||||
-H 'Content-Type: text/xml; charset="utf-8"' \
|
||||
-H 'SoapAction: urn:schemas-upnp-org:service:WANIPConnection:1#ForceTermination' -d '<?xml version="1.0" encoding="utf-8"?> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <u:ForceTermination xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1" /> </s:Body> </s:Envelope>'
|
13
bash_scripts/zyxel
Normal file
13
bash_scripts/zyxel
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
IP=192.168.1.1
|
||||
USER=admin
|
||||
|
||||
# change password here
|
||||
#PW=
|
||||
|
||||
OLD_IP=`wget http://checkip.dyndns.org/ -O /dev/stdout 2>/dev/null | sed "s/.*Current IP Address: \([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*/\1/"`
|
||||
echo "Alte IP: $OLD_IP"
|
||||
curl http://$USER:$PW@$IP/Forms/DiagADSL_1 -d "LineInfoDisplay=&DiagDSLDisconnect=PPPoE+Trennung"
|
||||
NEW_IP=`wget http://checkip.dyndns.org/ -O /dev/stdout 2>/dev/null | sed "s/.*Current IP Address: \([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*/\1/"`
|
||||
echo "Neue IP: $NEW_IP"
|
Loading…
Add table
Reference in a new issue