summaryrefslogtreecommitdiff
path: root/utilities/vdrsync
diff options
context:
space:
mode:
authorroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
committerroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
commit0e7005fcc7483c01aa102fbea358c5ac65a48d62 (patch)
tree11517ce0d3d2977c6732b3aa583b0008083e0bd3 /utilities/vdrsync
downloadx-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.gz
x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.bz2
hello world
Diffstat (limited to 'utilities/vdrsync')
-rw-r--r--utilities/vdrsync/utilitie-test.sh81
1 files changed, 81 insertions, 0 deletions
diff --git a/utilities/vdrsync/utilitie-test.sh b/utilities/vdrsync/utilitie-test.sh
new file mode 100644
index 0000000..8973c6d
--- /dev/null
+++ b/utilities/vdrsync/utilitie-test.sh
@@ -0,0 +1,81 @@
+#!/bin/sh
+
+# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis)
+# von Marc Wernecke - www.zulu-entertainment.de
+# 27.07.2006
+
+# vdrsync
+
+source ./../../x-vdr.conf
+source ./../../setup.conf
+source ./../../functions
+
+WEB="http://vdrsync.vdr-portal.de/releases/vdrsync-050322.tgz"
+VERSION="vdrsync-050322"
+LINK="vdrsync"
+
+VAR=`basename $WEB`
+DIR=`pwd`
+
+# install
+function make_util() {
+ download_util
+ extract_util
+
+ # setzen des symlinks
+ cd $SOURCEDIR
+ rm -f $LINK
+ ln -vfs $VERSION $LINK
+
+ # install
+ cd $SOURCEDIR/$LINK
+ cp -f vdrsync.pl /usr/bin
+ chmod 0755 /usr/bin/vdrsync.pl
+
+ ldconfig
+
+ # test
+ TEST=`which vdrsync.pl`
+ if [ "$TEST" ]; then
+ log "SUCCESS - $VERSION erstellt"
+ else
+ log "ERROR - $VERSION konnte nicht erstellt werden"
+ fi
+}
+
+# uninstall
+function clean_util() {
+ # remove script
+ rm -f /usr/bin/vdrsync.pl
+
+ # remove source
+ cd $SOURCEDIR
+ rm -rf $LINK
+ rm -rf $VERSION
+
+ ldconfig
+}
+
+# test
+function status_util() {
+ TEST=`which vdrsync.pl`
+ if [ "$TEST" ]; then
+ [ -d $SOURCEDIR/$LINK ] && echo "2" && return 0
+ echo "1"
+ else
+ echo "0"
+ fi
+}
+
+# start
+
+# plugin commands
+if [ $# \> 0 ]; then
+ cmd=$1
+ cmd_util
+else
+ make_util
+ status_util
+fi
+
+exit 0