Syl

Members
  • Posts

    31
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Syl

  1. Hi,

    I'm getting this error when I check the log on my router.

    I'm using btsync 1.1.70 on Linux (i386).

    When I checked which program was using this port (with the command netstat -tulpan), it was btsync.


    Aug 30 15:11:50 SYL-WRT daemon.notice miniupnpd[452]: Unknown udp packet received from 192.168.42.15:59019
    Aug 30 15:26:52 SYL-WRT daemon.notice miniupnpd[452]: Unknown udp packet received from 192.168.42.15:59019
    Aug 30 15:41:54 SYL-WRT daemon.notice miniupnpd[452]: Unknown udp packet received from 192.168.42.15:59019
    Aug 30 15:56:56 SYL-WRT daemon.notice miniupnpd[452]: Unknown udp packet received from 192.168.42.15:59019

  2. You should update url like this:


    url="http://syncapp.bittorrent.com/${version}/btsync_${arch}-${version}.tar.gz"

    I also did a similar script, I added a small test to check the url:


    test_url=`curl -Is $url | head -n 1 | sed -r 's/.* ([0-9]*) .*/\1/'`
    if [ "$test_url" = "200" ]; then
    wget $url -O - | tar -xvz
    else
    echo version ${version} not found.
    fi

    My script. I don't pass the arch because it never really changes, just edit the script.


    #/bin/sh

    arch="i386"

    if [ -z $# ]; then
    echo ./btupdater [version]
    exit 1
    fi

    url="http://syncapp.bittorrent.com/$1/btsync_$arch-$1.tar.gz"
    test_url=`curl --silent -Is $url | head -n 1 | sed -r 's/.* ([0-9]*) .*/\1/'`

    if [ "$test_url" != "200" ]; then
    echo version $1 not found.
    exit 1
    fi

    echo -e "killing process\c"
    while [ `ps aux | grep btsync | wc -l` -ne 1 ]; do
    echo -e ".\c"
    killall btsync
    sleep 1
    done
    echo .

    wget --quiet $url -O - | tar -xz

    ./btsync