[Desktop Entry] Comment=FritzBox reconnection script Exec=/bin/bash -c 'OLDIP=`curl -m 5 -s "http://ip.olausson.de"` ; if [[ ! ${?} ]] ; then kdialog --title "Fritz!Box reconnect" --passivepopup "Failed to get IP" 5 ; exit 1 ; fi ; kdialog --title "Fritz!Box reconnect" --passivepopup "Current IP: ${OLDIP}" 5 ; curl -m 5 -s "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 " " >/dev/null 2>&1 ; if [[ ! ${?} ]] ; then kdialog --title "Fritz!Box reconnect" --passivepopup "Failed connect to fritz.box" 5 ; exit 1 ; fi ; sleep 5 ; NEWIP=`curl -m 5 -s "http://ip.olausson.de"` ; if [[ ! ${?} ]] ; then kdialog --title "Fritz!Box reconnect" --passivepopup "Failed to get IP" 5 ; exit 1 ; fi ; if [[ "${OLDIP}" == "${NEWIP}" ]] ; then kdialog --title "Fritz!Box reconnect" --passivepopup "Reconnect failed!" 5 ; exit 1 ; else kdialog --title "Fritz!Box reconnect" --passivepopup "New IP: ${NEWIP}" 5 ; fi' GenericName=FritzBox reconnection script Icon=system-software-update Name=FritzBoxReCon NoDisplay=false Path[$e]= StartupNotify=true Terminal=0 TerminalOptions= Type=Application X-KDE-SubstituteUID=false X-KDE-Username=