diff options
| author | root <root@elwms02.(none)> | 2010-04-06 16:13:08 +0200 |
|---|---|---|
| committer | root <root@elwms02.(none)> | 2010-04-06 16:13:08 +0200 |
| commit | 0e7005fcc7483c01aa102fbea358c5ac65a48d62 (patch) | |
| tree | 11517ce0d3d2977c6732b3aa583b0008083e0bd3 /plugins/setup/plugin.sh | |
| download | x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.gz x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.bz2 | |
hello world
Diffstat (limited to 'plugins/setup/plugin.sh')
| -rw-r--r-- | plugins/setup/plugin.sh | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/plugins/setup/plugin.sh b/plugins/setup/plugin.sh new file mode 100644 index 0000000..6e7e8f5 --- /dev/null +++ b/plugins/setup/plugin.sh @@ -0,0 +1,58 @@ +#!/bin/sh + +# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis) +# von Marc Wernecke - www.zulu-entertainment.de +# 21.02.2009 +# +# vdr-setup + +# defaults +source ./../../x-vdr.conf +source ./../../setup.conf +source ./../../functions + +WEB="http://www.zulu-entertainment.de/files/vdr-setup/vdr-setup-0.3.1-zulu-edition.tgz" +VERSION="setup-0.3.1-zulu-edition" +LINK="setup" + +VAR=`basename $WEB` +DIR=`pwd` + +# plugin entfernen +function clean_plugin() { + cd $SOURCEDIR/VDR/PLUGINS/src + rm -rf $LINK* + rm -f $VDRLIBDIR/libvdr-$LINK* + rm -rf $VDRCONFDIR/plugins/setup + log "cleaning $LINK" +} + +# plugin installieren +function install_plugin() { + download_plugin + extract_plugin + cd $SOURCEDIR/VDR/PLUGINS/src + rm -f $LINK + ln -vfs $VERSION $LINK + patch_plugin + patch_p1_plugin + + ## plugin specials - start ## + [ "$VDRUPDATE" = "on" ] && [ -d $VDRCONFDIR/plugins/setup ] && return + + cp -rf $DIR/setup $VDRCONFDIR/plugins + chown -R $VDRUSER:$VDRGROUP $VDRCONFDIR/plugins/setup + chmod 0744 $VDRCONFDIR/plugins/setup/*.xml + ## plugin specials - ende ## +} + +# plugin commands +if [ $# \> 0 ]; then + cmd=$1 + cmd_plugin +else + install_plugin + log "install-plugin fuer $VERSION ist fertig" +fi + +exit 0 |
