Changeset 37714


Ignore:
Timestamp:
Jun 23, 2016, 9:18:27 PM (5 years ago)
Author:
karlo
Message:

fix callmonitor

Location:
ipk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.mipsel/tools_callmonitor/_path_/usr/local/share/titan/plugins/callmonitor1/fritzbox_msg_new.sh

    r37629 r37714  
    468468                        fi
    469469                    done < /tmp/curlhelp6.tmp
    470                     rm /tmp/curlhelp6.tmp   
     470                    #rm /tmp/curlhelp6.tmp   
    471471};
    472472
     
    475475        #rm $FRITZBUCH
    476476        if [ ! -f $FRITZBUCH ]; then
    477             echo "FritzBook new"
     477            echo "FritzBook new -> $FRITZBUCH"
    478478           
    479479            loadFritzBook60
     480                   
     481            if [ `grep -c "/td#" $FRITZBUCH` != "0" ]; then
     482                echo "Fehler gefunden! Teste nun v5"
     483                rm $FRITZBUCH
     484            fi
     485           
    480486            if [ ! -f $FRITZBUCH ]; then
    481487                    loadFritzBook50
     
    894900    fi
    895901    loadFritzBook
    896         if [ -f $FRITZBUCH ]; then
     902    if [ -f $FRITZBUCH ]; then
    897903        cat $FRITZBUCH
    898                 $CURL "http://$ip/cgi-bin/xmessage?caption=FritzBook%20geladen&body=FritzBox!%20Telefonbuch%20geladen&timeout=5" -o /dev/null
    899                 (touch /tmp/xmessage; sleep 5; rm  /tmp/xmessage) &
    900           else
    901                 $CURL "http://$ip/cgi-bin/xmessage?caption=Fehler%20beim%20laden&body=FritzBox!%20Telefonbuch%20konnte%20nicht%20geladen%20werden&timeout=5" -o /dev/null
    902                 (touch /tmp/xmessage; sleep 5; rm  /tmp/xmessage) &
     904        $CURL "http://$ip/cgi-bin/xmessage?caption=FritzBook%20geladen&body=FritzBox!%20Telefonbuch%20geladen&timeout=5" -o /dev/null
     905        (touch /tmp/xmessage; sleep 5; rm  /tmp/xmessage) &
     906      else
     907        $CURL "http://$ip/cgi-bin/xmessage?caption=Fehler%20beim%20laden&body=FritzBox!%20Telefonbuch%20konnte%20nicht%20geladen%20werden&timeout=5" -o /dev/null
     908        (touch /tmp/xmessage; sleep 5; rm  /tmp/xmessage) &
    903909    fi
    904910  ;;
  • ipk/source.sh4/tools_callmonitor/_path_/usr/local/share/titan/plugins/callmonitor1/fritzbox_msg_new.sh

    r37629 r37714  
    468468                        fi
    469469                    done < /tmp/curlhelp6.tmp
    470                     rm /tmp/curlhelp6.tmp   
     470                    #rm /tmp/curlhelp6.tmp   
    471471};
    472472
     
    475475        #rm $FRITZBUCH
    476476        if [ ! -f $FRITZBUCH ]; then
    477             echo "FritzBook new"
     477            echo "FritzBook new -> $FRITZBUCH"
    478478           
    479479            loadFritzBook60
     480                   
     481            if [ `grep -c "/td#" $FRITZBUCH` != "0" ]; then
     482                echo "Fehler gefunden! Teste nun v5"
     483                rm $FRITZBUCH
     484            fi
     485           
    480486            if [ ! -f $FRITZBUCH ]; then
    481487                    loadFritzBook50
     
    894900    fi
    895901    loadFritzBook
    896         if [ -f $FRITZBUCH ]; then
     902    if [ -f $FRITZBUCH ]; then
    897903        cat $FRITZBUCH
    898                 $CURL "http://$ip/cgi-bin/xmessage?caption=FritzBook%20geladen&body=FritzBox!%20Telefonbuch%20geladen&timeout=5" -o /dev/null
    899                 (touch /tmp/xmessage; sleep 5; rm  /tmp/xmessage) &
    900           else
    901                 $CURL "http://$ip/cgi-bin/xmessage?caption=Fehler%20beim%20laden&body=FritzBox!%20Telefonbuch%20konnte%20nicht%20geladen%20werden&timeout=5" -o /dev/null
    902                 (touch /tmp/xmessage; sleep 5; rm  /tmp/xmessage) &
     904        $CURL "http://$ip/cgi-bin/xmessage?caption=FritzBook%20geladen&body=FritzBox!%20Telefonbuch%20geladen&timeout=5" -o /dev/null
     905        (touch /tmp/xmessage; sleep 5; rm  /tmp/xmessage) &
     906      else
     907        $CURL "http://$ip/cgi-bin/xmessage?caption=Fehler%20beim%20laden&body=FritzBox!%20Telefonbuch%20konnte%20nicht%20geladen%20werden&timeout=5" -o /dev/null
     908        (touch /tmp/xmessage; sleep 5; rm  /tmp/xmessage) &
    903909    fi
    904910  ;;
Note: See TracChangeset for help on using the changeset viewer.