Changes between Initial Version and Version 1 of Scripts


Ignore:
Timestamp:
Dec 14, 2008, 1:33:40 AM (12 years ago)
Author:
Waldorf
Comment:

Waldorf: Still a work in progress. I was thinking of this as a portal, and each script in it's own page?

Legend:

Unmodified
Added
Removed
Modified
  • Scripts

    v1 v1  
     1= Transmission Scripts =
     2[[PageOutline]]
     3These will mainly be command-line scrips using the transmission-remote.
     4
     5== Category 1 ==
     6==== Block List Updater ====
     7{{{
     8#!/bin/sh
     9
     10PID="`pidof transmission-daemon`"
     11if [ -n "$PID" ]; then
     12        kill $PID
     13fi
     14
     15echo -n "Waiting for the daemon to exit "
     16sleep 2
     17
     18COUNT=1
     19while [ -n "`pidof transmission-daemon`" ]; do
     20        COUNT=$((COUNT + 1))
     21        if [ $COUNT -gt 60 ]; then
     22                echo -n "transmission-daemon doesn't respond, killing it with -9"
     23                kill -9 `pidof transmission-daemon`
     24                break
     25        fi
     26
     27        sleep 2
     28        echo -n "."
     29done
     30
     31echo " done"
     32
     33cd $HOME/.config/transmission-daemon/blocklists/
     34if wget http://www.bluetack.co.uk/config/level1.gz 1>/dev/null 2>&1 ; then
     35        rm -f level1 && gunzip level1.gz
     36        echo "blocklist updated"
     37else
     38        echo "blocklist not updated"
     39fi
     40
     41transmission-daemon
     42}}}
     43
     44== Category 2 ==
     45
     46
     47== Category 3 ==
     48
     49
     50== Category 4 ==
     51
     52----
     53== Comments ==
     54> Waldorf: Still a work in progress. I was thinking of this as a portal, and each script in it's own page?[[BR]]
     55> wereHamster: http://pastie.org/338556 http://pastie.org/338555 http://pastie.org/338552