Blocklist downloader


    November 23rd, 2008 | Tags: ,

    Quite a few softwares utilizes blocklist in bluetack format. I’m using blocklist for my bittorrent applications and needed an easy way of downloading and unpacking the blocklist. Call me lazy if you like. Wrote a simple script to download the blocklist and unpack it.

    Download: blocklist-downloader.sh

    #!/ffp/bin/sh

    #######################################
    # Blocklist downloader
    # Author: shadowandy.sg[AT]gmail.com
    # Web: http://www.shadowandy.net
    ########################################

    # Setting the path
    DOWNLOAD_DEST=/mnt/HD_a2/.transmission-daemon/blocklists

    ##### You should not need to edit anything below #####

    cd ${DOWNLOAD_DEST}
    # backing up existing blocklist (if any)
    for blocklist in “level1″ “level1.bin”
    do
    if test -f ${blocklist}; then
    echo “Backing up ${blocklist}…”
    mv -f ${blocklist} ${blocklist}.bak
    fi
    done
    # downloading the blocklist
    echo “Downloading new blocklist…”
    curl –silent http://download.m0k.org/transmission/files/level1.gz > level1.gz
    echo “Unpacking new blocklist…”
    gunzip level1.gz
    echo “Done. Blocklist downloaded and unpacked to ${DOWNLOAD_DEST}”


    Share it on del.icio.us




    5 responses

    1. o.O looks like someone is already in holiday mood.. haha!

       
    2. kev,

      Nah! Need to work hard! Just taking a break by writing something. lolx

       
    3. Great work! Would suggest that you might want to add the portion whereby to specific the -b option in transmission.sh.

      Cheers

       
    4. incom,

      Yeap. I think your suggestion is great. Will do it. :)

       
    5. [...] can use blocklist downloader to download the latest bluetack blocklist. Do run blocklist downloader before starting transmission [...]

       

    Leave a reply


    Send a trackback.

    Comments for this post will be closed on 8 March 2009.


    RSS Feeds



    Treat shadowandy!


    Like to treat shadowandy a cup of Starbucks?

    Polls


    Which is your preferred SOHO networking brand?

    • D-Link (48%, 225 Votes)
    • Linksys (27%, 126 Votes)
    • Cisco (12%, 57 Votes)
    • Netgear (7%, 34 Votes)
    • Buffalo (2%, 9 Votes)
    • TRENDnet (1%, 6 Votes)
    • PCI (1%, 5 Votes)
    • Planex (1%, 3 Votes)

    Total Voters: 465

    Loading ... Loading ...


    Recent Comments



    Friend's Blog



    Interesting Links



    Previous Postings




    Copyright © 2005 - 2008 www.shadowandy.net  94 queries. 0.616 seconds.Go back up ↑